基于python将orgmode转换为html。
org-python的Python项目详细描述
Author: jianglin
1 org-python
基于python将orgmode转换为html的orgmode解析器。
1.1 quickstart
pip install org-python
fromorgpythonimportorg_to_htmltext='''* heading - list1 - list2 - list3 - list4 - list5 | th1-1 | th1-2 | th1-3 | |--------+--------+--------| | row1-1 | row1-2 | row1-3 | | row2-1 | row2-2 | row2-3 | | row3-1 | row3-2 | row3-3 | '''print(org_to_html(text,offset=0))
1.3 feature
{总有机碳
{标题
* headind 1 ** headind 2 *** headind 3 **** headind 4 ***** headind 5 ****** headind 6
{无序列表
- list - list - list + list - list
{订购清单
1. list 2. list 3. list
{粗体
*bold*
{斜体
**italic**
带下划线
_italic_
{代码
=code=
{删除
+delete+
{图像
[[src][alt]]
{链接
[[href][text]]
{开始示例
开始src
{开始报价
{表格
| th1-1 | th1-2 | th1-3 | |--------+--------+--------| | row1-1 | row1-2 | row1-3 | | row2-1 | row2-2 | row2-3 | | row3-1 | row3-2 | row3-3 |