基于python将orgmode转换为html。

org-python的Python项目详细描述


Author:jianglin

1 org-python

基于python将orgmode转换为html的orgmode解析器。

https://img.shields.io/badge/pypi-v0.2.7-brightgreen.svghttps://img.shields.io/badge/python-3-brightgreen.svghttps://img.shields.io/badge/license-BSD-blue.svg

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.2 problem

无法正确呈现unclose块

#+BEGIN_QUOTE
test *test*
#+BEGIN_CENTER
*test1*
#+END_QUOTE

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 |
    

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在jetty请求日志中添加milliscond字段?   java在使用Scanner类从文件读取信息时遇到问题   为什么。类不适用于泛型类型?   SQLite插入上的java空指针异常   java能告诉我们Guava缓存是在禁用统计数据的情况下构建的吗?   java在应用程序中使用常量   java无法使用AutoIT和Selenium Webdriver在所需位置/文件夹保存图像   java如何在jtable中更新jprogress栏   java是比较给定日期和当前日期(在给定时区中没有时间段)的最佳方法   安卓代码中的java错误   java无法访问实体类中的字段   java如何在tomcat中处理三个JDBC连接池?   java无法使用Spring Security保护AngularJS页面   如何在没有TCP/IP协议栈的情况下用Java发送以太帧