[Others] 深度论坛Markdown编辑器无法正常显示代码
Tofloor
poster avatar
deepinuser17
deepin
2023-01-06 08:46
Author

问题: 使用Markdown编辑器创建的帖子,编辑的帖子不显示括号内的文字,不显示拷贝的代码

 

重复率: 100%

 

如何重复:

使用Markdown编辑器,编写新的帖文,或是修改帖文。 在帖文里拷贝复制一段代码。 该段代码不能显示。 或者用括号<>. 括号内的文字也无法显示

 

系统信息:   Deepin 20.8, 火狐108.0.1英文版

Reply Favorite View the author
All Replies
deepinuser17
deepin
2023-01-06 08:48
#1

具体案例见:

https://bbs.deepin.org/post/248075

回复#3 和 #4

 

 

Reply View the author
deepinuser17
deepin
2023-01-06 08:57
#2

Screenshot_select-area_20230105085657.png

Reply View the author
blue_whale
deepin
2023-01-06 17:05
#3

所有代码全部用三个反引号括住

# set PATH so it includes user's private bin if it exists

if [ -d "$HOME/.local/bin" ] ; then
     PATH="$HOME/.local/bin:$PATH"
fi

各种括号测试

圆括号1: (content)
方括号2: [content]
尖括号3: 显示空白
尖括号正确展示方式:
花括号4: {content}

尖括号其他测试:

这里写什么, 就展示什么
                    对吧

html中的h1标题标签

MarkDown编辑器会解析井号为段落,圆括号加方括号为链接, 等.
尖括号可以理解为插件没有处理, 浏览器自动解析的结果
1
2

Reply View the author
myml
Super Moderator
Developer
2023-01-06 17:47
#4

编辑器用的是所见即所得模式吗?

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

我试着使用插入代码块功能,是正常的

图片.png

Reply View the author
deepinuser17
deepin
2023-01-06 18:51
#5

再试试。


Reply View the author
deepinuser17
deepin
2023-01-06 18:53
#6

还是不行。 5楼的回帖。

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
Reply View the author
deepinuser17
deepin
2023-01-06 18:55
#7

**6楼 ** 成功了

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

Reply View the author