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

以字符数据,展示代码块异常 #1113

Open
kingteng opened this issue Nov 9, 2021 · 0 comments
Open

以字符数据,展示代码块异常 #1113

kingteng opened this issue Nov 9, 2021 · 0 comments

Comments

@kingteng
Copy link

kingteng commented Nov 9, 2021

编辑模式

与编辑模式无关,使用的是method.min.js

描述问题

代码块字符为:
bash\r\naa="123"\r\necho ${aa}\r\n
显示为:
image
应该是如下才正确:

aa="123"
echo ${aa}

以上问题使用文本数据才会出现,即:var markdown = ‘内容’
使用文件数据不是出现。
使用编辑器哪个模式都是正常的

期待的结果

把显示错误的内容修正

截屏或录像

image
文本原文:

# 标题1\r\n\r\n正文\r\n\r\n## 标题2\r\n\r\npython代码\r\n\r\n```python\r\nimport os \r\naa="123"\r\nprint(os.path.dirname(__file__),aa)\r\n```\r\n\r\n### 标题3\r\n\r\nshell代码块\r\n\r\n```bash\r\naa="123"\r\necho ${aa}\r\n```\r\n\r\n### 图片\r\n\r\n![/image/20211025111302.png](/image/20211025111302.png)\r\n\r\n### 脑图\r\n\r\n```mindmap\r\n- 教程\r\n- 语法指导\r\n  - 普通内容\r\n  - 提及用户\r\n  - 表情符号 Emoji\r\n    - 一些表情例子\r\n  - 大标题 - Heading 3\r\n    - Heading 4\r\n      - Heading 5\r\n        - Heading 6\r\n  - 图片\r\n  - 代码块\r\n```\r\n'

版本信息

  • 版本:Vditor v3.7.4
  • 操作系统:win11
  • 浏览器: edge 95.0

其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant