![]() ![]() ![]() The list of extensions may contain instances of extensions and/or strings A few commonly used extensions are shipped with the markdown Write extensions to the parser adding their own additions or changes to the Python-Markdown provides an API for third parties to If you want to write the output to disk, you must encode it yourself: with open("some_file.html", "w", encoding="utf-8", errors="xmlcharrefreplace") as output_file: For example: with open("some_file.txt", "r", encoding="utf-8") as input_file: ![]() as UTF-8), it is your responsibility to decode it. Do not pass binary strings to it! If your input isĮncoded, (e.g. Python-Markdown expects a Unicode string as input (some simple ASCII binary strings may work only byĬoincidence) and returns output as a Unicode string. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |