Skip to main content

push_code_block

Function push_code_block 

Source
pub(super) fn push_code_block(
    html: &mut String,
    info: Option<&str>,
    runnable: Option<(String, String)>,
    source: &str,
    diagrams: &mut Diagrams,
)
Expand description

输出一个完整的围栏代码块 <pre><code>…</code></pre>。

info 为围栏 info 字符串,runnable 为 runnable_attrs 的结果,source 为原始源码。