Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/honmaple/org-python

convert orgmode to html based on python.
https://github.com/honmaple/org-python

emacs orgmode python

Last synced: 4 months ago
JSON representation

convert orgmode to html based on python.

Awesome Lists containing this project

README

        

* org-python
An orgmode parser for converting orgmode to html based on python.

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

** quickstart
#+BEGIN_SRC sh
pip install org-python
#+END_SRC

#+BEGIN_SRC 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))
#+END_SRC

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