我们在用myst来写文档的时候,如果要添加醒目的提示框,可以这样做:
首先,在conf.py中添加以下内容,以启用所有扩展插件
myst_enable_extensions = [
"amsmath",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
"tasklist",
]
接着,就是各种提示框及其对应语法了。
:::{note}
note
:::
:::{caution}
caution
:::
:::{warning}
warning
:::
:::{error}
Error
:::
转载请注明来源:https://longjin666.cn/?p=1543