Skip to main content

[P]oker's M[a]de-up [M]arkup [L]anguage to HTML converter

Project description

paml2html is a proof-of-concept converter making HTML from [P]oker's M[a]de-up [M]arkup [L]anguage. PaML's docs can be found here. You can also track PaML's & paml2html's development on my Vikunja list!

Prerequisites

Installation

Download the files

  • Clone the repo:
git clone https://github.com/PokerFacowaty/paml2html
  • ... or simply download src/paml2html.py

Usage

To use paml2html by itself, simply start it when in the same directory:

python paml2html.py

(or if you have Python 2 installed)

python3 paml2html.py

...or you can also import it and use in a different file with import paml2html by calling the paml2html.convert_from_file() or paml2html.convert_from_text() function and providing a filepath or text

Arguments

paml2html.py [-h] [--indent INDENT] source_file destination_file

  • -h, --help - show help
  • --indent <number> - the optional amount of spaces used to indent the HTML file, indentation is off by default
  • source_file - source text file containing PaML content
  • destination_file - file for the resulting HTML content

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paml2html-0.1.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

paml2html-0.1.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page