fix(ui): 修复无语言 fenced code 的块级样式 - #98
Open
treasuresyq wants to merge 1 commit into
Open
Conversation
Related to helsome#28. 使用 pre 上下文区分块级代码与行内代码,避免无 language-* 标记的 fenced block 被渲染成行内样式,并补充回归测试。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #28. 使用 pre 上下文区分块级代码与行内代码,避免无 language-* 标记的 fenced block 被渲染成行内样式,并补充回归测试。
改动说明
无
language-*标记的 fenced code block 之前无法通过className判断为块级代码,会被错误地应用行内代码样式。本次修改通过
pre上下文区分块级代码与行内代码,使无语言标记的 fenced block 始终使用块级样式,并补充对应的回归测试。关联 Issue
Related to #28
测试报告(正式审核前必填)
环境
实际执行命令与结果
已知失败 / Baseline(如有)
无。
UI 截图(仅可见 UI 变化时必填)
Before(适用时)
After(适用时)
Scope / 后续
本 PR 聚焦修复无
language-*标记的 fenced code block 被误用行内样式的问题,不包含其他 Markdown 渲染调整。