以降价方式编排诗歌
mdx-poetic的Python项目详细描述
##安装
````
pip安装mdx诗意
````
它可能会有一些标记,这是一首诗的一行,这是一首诗的另一节,它有一个很长的行,这一行会在诗的另一节中,包含更多的标记。接下来是.
“
print(markdown.markdown(md,extensions=[诗意的扩展名())
``````
running,它将为您提供这样的输出:
``html
<;p>;这只是一些普通的散文文本。It might have some <em>markdown</em>.</p>
<p><blockquote class="mdx-poem"><p class="mdx-peom--stanza">
<span class="mdx-poem--line">this is a<br></span>
<span class="mdx-poem--line">line of a poem<br></span>
</p><p class="mdx-poem--stanza">
<span class="mdx-poem--line">and this is <em>another</em><br></span>
<span class="mdx-poem--line">stanza of a poem that has a really long line which will wrap<br></span>
<span class="mdx-poem--line">and more <strong>markdown</strong> in it<br></span>
</p></blockquote></p>
<p>And then this is some <strong>more</strong> markdown that follows.</p>但如果没有一些css的帮助,这就不会太有用:
``css
.mdx诗歌{
margin top:1remm;
}
>.mdx诗歌{
margin-top:1remm;
<
>
<
<
<
<
<
````````
`````>
>``````
/>```````````>`````css
{.mdx诗歌{mdx诗歌{
/>诗0;
显示:块;
}
```
这将给您一个很好的干净结果,其中`<;blockquote class="mdx-poem">` will be indented slightly, you get a line in between stanzas, and any wrapped lines will be indented under the beginning of the line:
![示例](https://github.com/nickwynja/mdx_诗意/raw/master/example.png)
为了与其他阅读器的视觉兼容性,可能需要进行进一步的测试,而且上述测试在语法上对预期输出最为准确。
\developent
````
pip安装mdx诗意
````
它可能会有一些标记,这是一首诗的一行,这是一首诗的另一节,它有一个很长的行,这一行会在诗的另一节中,包含更多的标记。接下来是.
“
print(markdown.markdown(md,extensions=[诗意的扩展名())
``````
running,它将为您提供这样的输出:
``html
<;p>;这只是一些普通的散文文本。It might have some <em>markdown</em>.</p>
<p><blockquote class="mdx-poem"><p class="mdx-peom--stanza">
<span class="mdx-poem--line">this is a<br></span>
<span class="mdx-poem--line">line of a poem<br></span>
</p><p class="mdx-poem--stanza">
<span class="mdx-poem--line">and this is <em>another</em><br></span>
<span class="mdx-poem--line">stanza of a poem that has a really long line which will wrap<br></span>
<span class="mdx-poem--line">and more <strong>markdown</strong> in it<br></span>
</p></blockquote></p>
<p>And then this is some <strong>more</strong> markdown that follows.</p>但如果没有一些css的帮助,这就不会太有用:
``css
.mdx诗歌{
margin top:1remm;
}
>.mdx诗歌{
margin-top:1remm;
<
>
<
<
<
<
<
````````
`````>
>``````
/>```````````>`````css
{.mdx诗歌{mdx诗歌{
/>诗0;
显示:块;
}
```
这将给您一个很好的干净结果,其中`<;blockquote class="mdx-poem">` will be indented slightly, you get a line in between stanzas, and any wrapped lines will be indented under the beginning of the line:
![示例](https://github.com/nickwynja/mdx_诗意/raw/master/example.png)
为了与其他阅读器的视觉兼容性,可能需要进行进一步的测试,而且上述测试在语法上对预期输出最为准确。
\developent