mwconv
Wiki text conversions based on MediaWiki
This program parses a dialect of MediaWiki syntax and converts it to various formats (html, plain text and markdown).
This is intended for documentation written using the MediaWiki syntax instead of the Markdown syntax as is more popularly used these days; there are no wiki features such as internal links implemented.
Tables and definition lists are supported.
The markdown and text versions of this file are converted using this utility.
Options
Summary
Options:
-h, --help show this help message and exit
-o FILE write to this file (default stdout)
-t TYPE, --type=TYPE select output type
-l NUMBER, --first-level=NUMBER
The output TYPE can be one of:
- text
- plain text output
- html
- - html output
- md
- markdown output
- md_safe
- markdown output with html restricted to a 'safe' subset.
- mw
- mediawiki output, the output will be a normalized form of the input. It will also be affected by the _first-level_ option if given.
The first-level option sets the first heading level in the output. So if it is set to 1, the the first heading will be H1 in html regardless of what level it is in the input and all the other headings adjusted appropriately.
Compatibility
The syntax is intended to be almost identical to MediaWiki text. Lots of people try (or used to try, markdown is commonly used now) to use MediaWiki for documentation since it is/was well known.
However if your documentation contains lots of lists and code sections the syntax is not altogether convenient.
- A list item has to be all on one line.
- There can not be any blank lines between list items.
- A code example can't (easily) be part of a list item.
So typically you use unordered lists and it all kind of looks ok in the browser, even though the code examples are not really in the list and break the list up into multiple lists.
This implementation has the following improvements.
- A list item can be split onto more than one line.
- If an indented block follows the list item, then it will be actually inside the list item.
- There are some alternative notations.
Metadata
Release files for mwconv 1.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mwconv-1.6.2.tar.gz | 24.9 kB | Without provenance | Details for mwconv-1.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mwconv-1.6.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mwconv-1.6.2-py2.py3-none-any.whl |
Total release size: 62.4 kB
Release files / mwconv-1.6.2.tar.gz
| Download URL | mwconv-1.6.2.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c235ad84d4bba549dc9cfcdecd73c796954697901b04446f0139794d28c71994
|
|
BLAKE2b-256 checksum How to use checksums |
1376c62ec24914a72cf3feb66cce3126602a0c586800f66bfcb00426ca4c735d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Release files / mwconv-1.6.2-py2.py3-none-any.whl
| Download URL | mwconv-1.6.2-py2.py3-none-any.whl |
|---|---|
| Size | 37.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
27ae27076dac70bceed280c7227703afe7c9748db9615fb2799d0b20c74c17e3
|
|
BLAKE2b-256 checksum How to use checksums |
1557b2136670cb402af249d9d0b9399995d4f724d7c2c78e64390fc326d7896a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for mwconv 1.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.