Skip to main content

PMD is a library that contains

Project description

PMD

ProMD (Programmatic Mardown) is a small library which help you generating Markdown from code.
Remembering all Markdown features and how to implement them is slow, and sometimes we make errors

Install

# Using PIP:
pip install ProMD

# Using GIT plus PIP
pip install git+https://github.com/ZSendokame/ProMD.git

Use

Using PMD is easy!

import promd

md = promd.Markdown('file.md')  # File used to saved the Markdown.

md.header('Welcome to ProMD', level=1)  # A header and it's level.
md.text('Hi, this is a string.')
# Inside .text(), you can use: .bold(), .cursive() and .code().

md.ordered_list(['You can make Ordered lists.', 'Or an unordered one'])
md.unordered_list(['Like this!', 'they work the same way so...'])

md.table([
    promd.Array('First Column', ['First row, first', 'Second row, first']),
    promd.Array('Seconds Column', ['First row, second', 'Second row, second'])
])
# Create a common table, receives a list of .Array() classes, that contain the
# information to create the table.

md.save()
# Save generated markdown to the file.

# Or just use:
md.markdown

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

ProMD-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file ProMD-1.0.0.tar.gz.

File metadata

  • Download URL: ProMD-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ProMD-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0554d08cc32eb5ce6abe9735a739a698311e1e993cc61fffb58e748e5d6f4c1c
MD5 ea2d95cd80966bd8f9655913136aefcc
BLAKE2b-256 71076ac722b5b8dc53d2af3509064a1f37e1264511ca936e1814ab90302fa31c

See more details on using hashes here.

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