Module markdown

Module markdown 

Source
Expand description

Operations on Markdown that are not link- or reference-related

Functions§

extract_code_from_all_markdown_files_in
Extract code examples from all Markdown files within a source directory and write them to separate files.
include_in_all_markdown_files_in
Within each mdBook-style Markdown file in a source directory, replace {{#include file.md}} statements by the contents of the included file.
remove_code_from_all_markdown_files_in
Remove Rust code blocks from Markdown files, replacing each by an {{#include … }} statement.
remove_includes_in_all_markdown_files_in
Within each mdBook-style Markdown file in a source directory, remove any left-over {{#include file.md}} statements (and replace by a hard-coded string).