convert orgmode to html based on python.


Keywords
emacs, orgmode, python
License
BSD-3-Clause
Install
pip install org-python==0.3.2

Documentation

org-python

An orgmode parser for converting orgmode to html based on python.

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

quickstart

pip install org-python
from orgpython import to_html

text = '''* 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(to_html(text, toc=True, offset=0, highlight=True))

feature

  • [X] toc
  • [X] heading
    * headind 1
    ** headind 2
    *** headind 3
    **** headind 4
    ***** headind 5
    ****** headind 6
        
  • [X] unordered_list
    - list
    - list
      - list
        + list
      - list
        
  • [X] ordered_list
    1. list
    2. list
    3. list
        
  • [X] bold
    *bold*
        
  • [X] italic
    **italic**
        
  • [X] underlined
    _italic_
        
  • [X] code
    =code=
        
  • [X] delete
    +delete+
        
  • [X] image
    [[src][alt]]
        
  • [X] link
    [[href][text]]
        
  • [X] begin_example
  • [X] begin_src
  • [X] begin_quote
  • [X] table
    | th1-1  | th1-2  | th1-3  |
    |--------+--------+--------|
    | row1-1 | row1-2 | row1-3 |
    | row2-1 | row2-2 | row2-3 |
    | row3-1 | row3-2 | row3-3 |