建议增加一个函数用于判断输入文本应该用 fuse() 还是 mark()
#102
Closed
chuxinyuan
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
|
这个在现有的代码中已经做了: Line 166 in da5e659 问题是当输入的文本只有一行以 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在 Shiny app 里用户输入的内容有可能含有代码,也有可能是不含代码的纯 Markdown 内容,此时我需要事先判断该用
fuse()还是mark()才能靶向用药,因为我发现用户输入的内容中删除代码部分后,fuse()会将 Markdown 内容识别为代码块,例如:Created on 2025-10-01 with reprex v2.1.1
我对正则表达式不很了解,在 AI 的帮助下写了个函数用来判断是否该用
fuse(),代码如下:Beta Was this translation helpful? Give feedback.
All reactions