markdown文件里的HTML标签不会被正确地渲染 HTML tags in markdown files are not rendered correctly #5526
Unanswered
Nightingale0504
asked this question in
Question / Answer
Replies: 1 comment
-
I couldn't reproduce the issue. It's likely caused by a plugin or theme. The provided repository contains only the generated code, so we can't identify the problem. If there is a cause, I think it might be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check List
hexo version
to check)Expected behavior
When I use the "hexo g" command to ensure that all files are generated correctly (only INFO, no ERROR, no WARN, etc.), and then use the "hexo s" command to deploy the blog environment locally, the HTML tags such as in the markdown file will be correctly rendered on the page by hexo as images, etc.
Actual behavior
When I use the "hexo s" command to deploy the blog environment locally after ensuring that all files are correctly generated using the "hexo g" command (only INFO, no ERROR, no WARN and other prompts), the HTML tags such as used in the markdown file will not be correctly rendered on the page by hexo, but the text form of the HTML tags will be directly displayed on the page (to be precise, hexo does not parse these HTML tags and directly displays them on the page as text)
How to reproduce?
step 1. Use the "hexo new page xxx" command to create a new page
step 2. Put some HTML tags into the new page and save the page file
step 3. Use the "hexo g" command to generate pages and posts
step 4. Use the "hexo s" command to start the hexo server locally
step 5. Visit the page was created on the step 1
step 6. The images' HTML tags will show to me as the text form
Is the problem still there under
Safe mode
?Yes, it is.
Your Node.js & npm version
Your Hexo and Plugin version
Your
package.json
Your site's
_config.yml
(Optional)Others
My hexo repo is on https://github.com/Nightingale0504/nightingale0504.github.io
Beta Was this translation helpful? Give feedback.
All reactions