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

使用 label 标签外挂在开头时,会导致无法换行 #707

Closed
3 tasks done
immyw opened this issue Oct 8, 2023 · 3 comments
Closed
3 tasks done

使用 label 标签外挂在开头时,会导致无法换行 #707

immyw opened this issue Oct 8, 2023 · 3 comments
Labels
Bug Something isn't working Hexo

Comments

@immyw
Copy link

immyw commented Oct 8, 2023

Issue Checklist

Expected behavior

换行

Actual behavior

无法换行

Steps to reproduce the behavior

{% label @ipsum %} Lorem {% label primary@dolor sit %} amet, consectetur {% label success@adipiscing elit, %} sed {% label info@do eiusmod %} tempor incididunt ut labore et dolore magna aliqua.

{% label @ipsum %} Lorem {% label primary@dolor sit %} amet, consectetur {% label success@adipiscing elit, %} sed {% label info@do eiusmod %} tempor incididunt ut labore et dolore magna aliqua.

生成的结果

image

发现如果在开头使用 label 标签外挂, 生成的 文字不是 p 标签包住。这样就导致两段文字都是 开头使用 label 标签外挂,没有换行

image

Node.js and NPM Information

v20.8.0
9.8.0

Package dependencies Information

+-- hexo-generator-archive@2.0.0
+-- hexo-generator-category@2.0.0
+-- hexo-generator-index@3.0.0
+-- hexo-generator-tag@2.0.0
+-- hexo-renderer-ejs@2.0.0
+-- hexo-renderer-marked@6.1.1
+-- hexo-renderer-stylus@3.0.0
+-- hexo-server@3.0.0
+-- hexo-theme-landscape@1.0.0
+-- hexo-theme-next@8.18.1
`-- hexo@6.3.0

Hexo Configuration

初始版本

NexT Configuration

初始版本

Other Information

No response

@immyw immyw added the Bug Something isn't working label Oct 8, 2023
@welcome
Copy link

welcome bot commented Oct 8, 2023

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@stevenjoezhang
Copy link
Member

这个是 Hexo 原理限制,主题无法解决

@stevenjoezhang
Copy link
Member

这个 Issue 我先关了,可以加入 Hexo 那边的讨论: hexojs/hexo#5309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Hexo
Projects
None yet
Development

No branches or pull requests

2 participants