Titan-C / org-python

convert orgmode to html based on python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

org-python

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

https://img.shields.io/badge/pypi-v0.2.7-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 org_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(org_to_html(text,offset=0))

problem

Can’t render unclose block correctly

test *test*
*test1*

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 |
        

About

convert orgmode to html based on python.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%