Repository navigation
fix(choro): wiki 面板三处「给人看」口径——机器标记、文件 status、树层级(#582) #678
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
Open
modusensus
wants to merge
4
commits into
main
Choose a base branch
from
fix/582-wiki-rendering
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+140
−9
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
08122b1
fix(choro): wiki 面板三处「给人看」口径——机器标记不露、文件 status 回写、树按 parent_id 建层级(#582)
modusensus 01b327f
Merge remote-tracking branch 'origin/main' into fix/582-wiki-rendering
modusensus 7318370
Merge branch 'main' into fix/582-wiki-rendering
modusensus cdc9bc3
fix(panel): 围栏识别记录字符与长度,~~~/四反引号块里的注释不再被隐藏规则误删(PR #678 评审)
modusensus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先修正围栏识别,再保证代码中的注释不被删除。
如果代码块使用
~~~html开始,inCode始终为false,新增判断会删除其中的<!-- example -->。四个反引号开启的代码块内部出现三个反引号时,也会提前退出代码状态,随后删除注释。此前这些注释至少仍可见,现在会直接消失。请记录开启围栏的字符和长度,只接受匹配的结束围栏,并覆盖这两种输入。
依据检索学习:“结束围栏必须与开启围栏使用相同字符,且长度不小于开启围栏。”
Source: Learnings
不要删除注释结束后的正文。
如果输入为
<!-- note --> 请先备份再执行,此判断会跳过整行,连同“请先备份再执行”一起隐藏。该行不只是 HTML 注释。请仅跳过完整的独占行注释,或移除注释后继续渲染剩余正文,并增加此输入的回归测试。