{"repo":"lepture/wenmode","free":true,"listed":false,"github":"https://github.com/lepture/wenmode","clone":"git clone https://github.com/lepture/wenmode.git","description":"A fast, composable Markdown parser and renderer toolkit.","language":"Python","stars":28,"topics":["markdown","mdast","gfm"],"license":"BSD-3-Clause","category":"productivity","readme_excerpt":"Wenmode is a composable Markdown toolkit for Python by the same author as Mistune. It is a rewrite informed by Mistune's design, with a stronger focus on explicit rule composition, mdast-compatible AST output, extension state, and pluggable rendering. The top-level Wenmode class combines a parser and a renderer. By default, Wenmode parses CommonMark-style Markdown and renders HTML. Documentation: Use Wenmode to: - render Markdown to HTML with safe defaults for user-authored content, - choose the exact Markdown rules your application accepts, - inspect or store an mdast-compatible AST, - build a custom Markdown dialect with parser rules and renderer handlers, - stream HTML output from Markdown input. Installation Run the CLI without installing it permanently: After installation, use either the console script or Python module entry point: Quick start Use parse() when you need the mdast-compatible syntax tree: Set positions=True to include source ranges for editor integration, diagnostics, or AST-based tooling: Pass a renderer when you need reStructuredText or AsciiDoc output: Rules, presets, and plugins Most applications start with a preset: - commonmark , the default CommonMark-style rule set, - github , for GitHub-flavored Markdown features such as tables and task lists, - streaming , for incremental HTML output. Rules are opt-in and composable. Wenmode() uses the commonmark preset by default. Pass an explicit rule list to define a custom Markdown dialect. Because Emphasis is","default_branch":null,"files":null,"tree":[],"storefront":"/r/lepture","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lepture/wenmode/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}