You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
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
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.
#1549
主要是在未修改之前,输入```会自动闭合成代码块,然后就是 mermaid 格式下是先生成了代码块
我先造 Suggester 文件下增加了,处理在输入回车时候的操作,如果是```跟任意字符串加空格就能自动闭合,如果不是就不做任何操作。这边这里注意了输入的```的数量和重复生成的问题。。。。更多的重复我没有好的想法解决
并且联想窗存在的时候按回车也能生效,这个要注意一下
关于 mermaid 的渲染,主要改了codeBlock 这个文件
保证了在 mermaid 模式下,只要里面没有/n 之外的东西就是使用一个占位语句,如果有东西就看里面输入的是什么,是合适的语法就渲染图表,不是的话还是代码块。只是保证了一开始不会出现代码块
然后就是这里,关于使用的语言,如果你回车的语言不被 Prism 支持,那就不怎么管了。。。只要保证存在的语言合理显示
然后可能会有一些 bug。。。希望大佬帮我看看