我尝试
~~~sql在...代码段之前应用带有标记的[四个]空间
简单来说:
~~~是不够~~~~的。更长的答案:
您必须在缩进代码块和受防护代码块之间进行选择。替代语法的部分混合将不起作用。
# Code Block #
What follows is a fenced code block.
Note that all text starts immediately in the left margin.
There is no indentation of the fences.
There are no extra space characters at the start of these lines.
~~~~sql
update employee
set salary = salary * 2
where salary < 100000
~~~~
The following will not work
~~~~sql
update employee
set salary = salary * 2
where salary < 100000
~~~~
You cannot mix indentation and fencing.
Run Code Online (Sandbox Code Playgroud)
语法标识符是受保护代码块语法的一部分。您还必须以波浪号结尾代码块。
SQL是语法突出显示支持的语言。
您还必须“勾选在代码块中启用突出显示选项”。在Macdown中。
(请注意,OP Ugol最终注意到了这一点-请参阅评论。最初,我们俩都忽略了它)
~~~sql 波浪号字符太少,只有三个
~~~~sql 具有正确数目的代字号字符以指示“围栏”