Git Product home page Git Product logo

paml2html's Introduction

paml2html is a converter making HTML from [P]oker's M[a]de-up [M]arkup [L]anguage that's designed to be used on my website as well as being a fun little learning experience. 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

  • Grab the latest release
  • Alternatively, since paml2html is available on PyPI, if you intend to only use it as as an imported package, you can install it with pip
pip install paml2html

Usage

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

python paml2html.py <source_file> <destination_file>

(remember to use the relevant Python installation, which might be python3 or other on your system)

...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 accordingly

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

paml2html's People

Contributors

pokerfacowaty avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.