我不确定如何处理以下混合代码/列表构造:
注意:对于适当的受防护的代码块,假设下面的2个反引号实际上是3个。.
``java
startHttpServer();
System.out.println(
"Http Server Listening on " + SConstants.HTTP_PORT + SConstants.HTTP_PROJECT_NAME);
``
@ Logging level can be calibrated by simple change(s) to logging.xml and/or log4j.properties
- _Comments_: this seems to be mostly in place
@ Errors and exceptions go to appropriate WARN and/or ERROR logging levels
这是结果:注意,以错误的字体,缩进和编号丢失导致以开头的代码围栏失真的所有内容:
对于需要最左边距的所有构造,都会显示此相同问题:
该文档部分应如何重组,以保留包括代码围栏,URL和图像的功能,而又不影响编号,字体和缩进?
我正在运行markdown
到pandoc
:不知道后者是否是引起问题的原因,还是本机的markdown
问题。
更新:这是有效的最终版本:在已接受的@eskwaryd答案的帮助下
1. Code Behaviors
1. Logging
@. No "bare" `System.out.println` 's
_Comments_: _Many_ of these exist. Here is a partial list
Here is one code example
``java
startHttpServer();
System.out.println(
"Http Server Listening on " + SparcleConstants.HTTP_PORT + SparcleConstants.HTTP_PROJECT_NAME);
``
@. Logging level can be calibrated by simple change(s) to logging.xml and/or log4j.properties
- _Comments_: this seems to be mostly in place
@. Errors and exceptions go to appropriate WARN and/or ERROR logging levels
- _Comments_: Exceptions and errors may be swallowed: this is an exposure
答案 0 :(得分:1)
使代码块缩进以匹配列表项的缩进。例如:
1. Section one
1. Item One
```java
code goes here...
```
2. Item two
3. Item three
2. Section two
结果:
第一节
第一项
code goes here...
第二项
第三项
第二部分