mdbook-private 0.1.0

A preprocessor for mdbook that allows for private sections to be hidden or kept
Documentation

mdbook-private

A preprocessor for mdbook that allows for private sections to be hidden or kept.

Usage

Installation

cargo install mdbook-private

Then add it to your book.toml

# Default options
[preprocessor.private]
remove = false
style = true
notice = "CONFIDENTIAL"

Options

  • remove (boolean): remove or keep the sections defined as private
  • style (boolean): style the sections (if kept), currently using the blockquote css
  • notice (string): add a notice to the styled sections in the top right corner

Usage in Markdown

<!--private
This is some highly confidential material which we want to hide when sharing with external parties.

Another *line*.

# A title that should remain a title  
Yet another **line**.
-->