Terminal Markdown Tool readm3 Gains Editing Mode and Multi-Flavor Parsing Support
readm3, a terminal-based markdown reader, has been updated with a built-in editing mode that allows users to write, preview, and save markdown files without leaving the app. The tool's original hand-rolled regex parser has been replaced with the 'marked' library, chosen for its zero external dependencies, which fixes issues with reference links, nested lists, and bare URL autolinks. A new --flavor switch lets users choose between CommonMark, GitHub, Reddit, and a combined mode, since each standard handles elements like spoiler tags and emoji shortcodes differently. Reddit-specific syntax such as superscript and spoiler tags required custom handling, as they conflict with standard markdown parsing rules. The updated version is tested across Node 22, Node 24, and Bun on Linux, macOS, and Windows, and is available via npm or Bun as @profullstack/readm3.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in