Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/honmaple/org-python
- Owner: honmaple
- License: bsd-3-clause
- Created: 2017-03-15T15:59:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T04:16:20.000Z (about 2 years ago)
- Last Synced: 2024-09-29T18:01:27.044Z (4 months ago)
- Topics: emacs, orgmode, python
- Language: Python
- Size: 77.1 KB
- Stars: 17
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.org
- License: LICENSE
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_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(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