Skip to content

hey-thanks/exposition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exposition

A Python package designed to help you write documents, reports, etc.

Output Formats

The goal is to implement the following output formats.

  • Markdown
  • reStructuredText
  • AsciiDoc

Example

The following example demonstrates how this package could be used to write a portion of this README.md file.

from exposition import Document
from exposition.markdown import *

report = Document()

report.add_elements(
    Header('exposition'),
    Paragraph('A Python package designed to help you write documents, reports, etc.'),
    Header('Output Formats', level=2),
    Paragraph('The goal is to implement the following output formats.'),
    List(['Markdown',          # Standard list; extensions not yet implemented.
          'reStructuredText',
          'AsciiDoc'])
)

report.write_to_file('README.md')

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages