Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown files are not rendered as expected #4087

hujinbo opened this issue Jan 19, 2020 · 0 comments

Markdown files are not rendered as expected #4087

hujinbo opened this issue Jan 19, 2020 · 0 comments


Copy link

@hujinbo hujinbo commented Jan 19, 2020

Check List

Please check followings before submitting a new issue.

  • I have already read Docs page & Troubleshooting page
  • I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • Using the latest version of Hexo (run hexo version to check)
  • Node.js is higher than 8.6.0

Expected behavior

When I used the hexo-theme-next video tag and other tags in the same markdown file, only the video tag rendered successfully and the other tags cannot be rendered. But if you remove the video tag, it will render properly.

I reported the bug to hexo-theme-next, but they said it was a hexo problem.
theme-next/hexo-theme-next#1353 (comment)

Actual behavior

How to reproduce?

You can clone the source code of this blog for reproduction:

  • add post
title: Hexo标签测试

## 居中引用

    {% cq %}你所做的事情,也许暂时看不到成功,但不要灰心,你不是没有成长,而是在扎根。{% endcq %}


{% cq %}你所做的事情,也许暂时看不到成功,但不要灰心,你不是没有成长,而是在扎根。{% endcq %}

## 插入视频

    {% video %}


{% video %}

Environment & Settings

Node.js & npm version


Your site _config.yml (Optional)

# Hexo Configuration
## Docs:
## Source:

# Site
title: Hexo
subtitle: ''
description: ''
author: John Doe
language: en
timezone: ''

## If your site is put in a subdirectory, set url as '' and root as '/child/'
root: /
permalink: :year/:month/:day/:title/
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang

# Writing
new_post_name: # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
  enable: true # Open external links in new tab
  field: site # Apply to the whole site
  exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
  enable: true
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
  path: ''
  per_page: 10
  order_by: -date

# Category & Tag
default_category: uncategorized

# Metadata elements
meta_generator: true

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## Use post's date for updated date unless set in front-matter
use_date_for_updated: false

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder

# Extensions
## Plugins:
## Themes:
theme: next

# Deployment
## Docs:
  type: ''

Your theme _config.yml (Optional)

no change

Hexo and Plugin version(npm ls --depth 0)

+-- hexo@4.2.0
+-- hexo-generator-archive@1.0.0
+-- hexo-generator-category@1.0.0
+-- hexo-generator-index@1.0.0
+-- hexo-generator-tag@1.0.0
+-- hexo-renderer-ejs@1.0.0
+-- hexo-renderer-marked@2.0.0
+-- hexo-renderer-stylus@1.1.0
`-- hexo-server@1.0.0

Your package.json package.json

  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  "hexo": {
    "version": "4.2.0"
  "dependencies": {
    "hexo": "^4.0.0",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-index": "^1.0.0",
    "hexo-generator-tag": "^1.0.0",
    "hexo-renderer-ejs": "^1.0.0",
    "hexo-renderer-stylus": "^1.1.0",
    "hexo-renderer-marked": "^2.0.0",
    "hexo-server": "^1.0.0"



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.