scriptorium/utils/marked

Bindings to the marked.js library.

Types

Marked.js options object.

pub type Options =
  Object

Functions

pub fn default_parse(content: String) -> String

Parse a string containing Markdown using the default options.

pub fn new_options() -> Object

Create a new options object.

pub fn parse(
  content content: String,
  options options: Object,
) -> String

Parse a string containing Markdown using Marked.js.

pub fn set_header_ids(options: Object, ids: Bool) -> Object

Set the headerIds option on or off.

pub fn set_header_prefix(
  options: Object,
  prefix: String,
) -> Object

Set the headerPrefix option.

pub fn set_mangle(options: Object, do_mangle: Bool) -> Object

Set the mangle option on or off.

Search Document