Thomas Touhey c84f29c1d0 | ||
---|---|---|
docs | ||
scripts | ||
tests | ||
textoutpc | ||
.editorconfig | ||
.gitignore | ||
.python-version | ||
LICENSE.txt | ||
MANIFEST.in | ||
Makefile | ||
Pipfile | ||
Pipfile.lock | ||
README.rst | ||
TODO.rst | ||
setup.cfg | ||
setup.py |
README.rst
Planète Casio's textout() BBcode markup language translator
This module contains a BBcode to HTML translator for Planète Casio. For more information, read the documentation accessible on the official website.
Warning
If you are accessing this repository from another forge (such as Planète Casio's forge), keep in mind that it is only a mirror and that the real repository is located in my forge for now.
For example, if we want to translate some basic multi-block text to HTML:
from textoutpc import tohtml
= """[img=center]https://www.planet-casio.com/skins/bootstrap/img/default/logo.png[/img]
text
Hello [color=R10]world[/color]!
[ul]
[*]This module is made by [url=https://thomas.touhey.fr/]Thomas Touhey[/url]!
[*]Use `.tohtml()` to translate magically to HTML!
[/]
"""
print(tohtml(text))