1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import re
- from orgpython import org_to_html
- from pelican import signals
- from pelican.readers import BaseReader
- from pelican.utils import pelican_open
- class OrgReader(BaseReader):
- """Reader for Org files"""
- enabled = True
- file_extensions = ['org']
- def _separate_header_and_content(self, text_lines):
- """
- From a given Org text, return the header separate from the content.
- The given text must be separate line by line and be a list.
- The return is a list of two items: header and content.
- Theses two items are text separate line by line in format of a list
- Keyword Arguments:
- text_lines -- A list, each item is a line of the texte
- Return:
- [
- header -- A list, each item is a line of the texte
- content -- A list, each item is a line of the texte
- ]
- """
- pass
|