a变量扩展标记
mdx-variables的Python项目详细描述
MDX_变量
==
|变量ci badge image::https://travis-ci.org/ctpug/mdx_variables.png?branch=master
:alt:travis ci build status
:scale:100%
:target:https://travis ci.org/ctpug/mdx_variables
_ ISC许可证:https://github.com/ctpug/mdx廑variables/blob/master/license
requirements
==
MDX廑variables插件只需要基本的“markdown”库。
。_降价:http://pythonhosted.org/markdown/
installation
==
install with``pip install mdx_variables``.
documentation
==
允许在降价中插入变量。
code::markdown
这段包含${fickes}鸡。
这段除了${foxs}狐狸之外没有鸡。
这里有忍者吗?${ninjas}.
可能导致:
…代码:markdown
此段落包含5只鸡。
此段落不包含鸡,但包含3只狐狸。
这里有忍者吗?找不到忍者。
python用法:
…代码::python
md=markdown.markdown(
扩展名=[
'变量',
],
扩展名配置={
'变量':{
'变量':{
'鸡':'5',
'狐狸':(lambda:3),
“getattr”:(lambda name:“{}未找到”。format(name)),
},
}
配置选项:
*``vars`:将变量名映射到变量值的字典。
用作变量值。
==
|变量ci badge image::https://travis-ci.org/ctpug/mdx_variables.png?branch=master
:alt:travis ci build status
:scale:100%
:target:https://travis ci.org/ctpug/mdx_variables
_ ISC许可证:https://github.com/ctpug/mdx廑variables/blob/master/license
requirements
==
MDX廑variables插件只需要基本的“markdown”库。
。_降价:http://pythonhosted.org/markdown/
installation
==
install with``pip install mdx_variables``.
documentation
==
允许在降价中插入变量。
code::markdown
这段包含${fickes}鸡。
这段除了${foxs}狐狸之外没有鸡。
这里有忍者吗?${ninjas}.
可能导致:
…代码:markdown
此段落包含5只鸡。
此段落不包含鸡,但包含3只狐狸。
这里有忍者吗?找不到忍者。
python用法:
…代码::python
md=markdown.markdown(
扩展名=[
'变量',
],
扩展名配置={
'变量':{
'变量':{
'鸡':'5',
'狐狸':(lambda:3),
“getattr”:(lambda name:“{}未找到”。format(name)),
},
}
配置选项:
*``vars`:将变量名映射到变量值的字典。
用作变量值。