/webpage2md

Converts a web page to markdown

Primary LanguageShellMIT LicenseMIT

webpage2md

Converts a web page to markdown

This is basically a fancy wrapper script for reverse_markdown, written specifically to be used by CiviCRM developers as part of the process of transferring wiki content to mkdocs.

For help and usage, see:

webpage2md --help

Known limitations

  • Within <pre> blocks of the source HTML (e.g. code examples), any occurrences of the string \n will be replaced with a newline. This behavior messes up the display of the code block in the markdown, and will be apparent when viewing the result. Workaround: edit markdown and replace any of these rogue newlines with \n.