虽然Wikis和Wikipedia仍在Area 51中,但我想问一个关于使用Creole wiki标记的问题。我有以下代码:
# Initial instructions here.
# Some instructions here. See code snippet below.
{{{
#!python
def foo():
return bar
}}}
# More instructions here. Why does the numbering restart at 1?
# Final instructions.
当解析该代码时,我会得到以下结果:
1. 这里是初始指令。问题:如何嵌入代码片段以使列表项在代码片段下方不重新从1开始?
2. 这里有一些指令。请参见下面的代码片段。
def foo(): return bar3. 这里有更多的连续指令。为什么编号重新从1开始?
4. 最后的指令。