Module

jinks/markdown

src/jinks/markdown.pooka

Headings receive their addresses from the parsed tree, not a search through rendered HTML. The same walk supplies the outline, including nested quotes and lists, while code fences remain opaque to heading recognition.

API reference

function

author

src/jinks/markdown.pooka:19
author(source: String, raw_html: Bool) -> #(String, json.Json)
INFERREDfn(String, Bool) -> #(String, $package/pooka_json/pooka/json.Json)
function

walk

src/jinks/markdown.pooka:42
walk(
  blocks: List(ast.Block),
  options: html.Options,
  used: dict.Dict(String, Bool),
  outline: List(json.Json)
) -> #(List(ast.Block), dict.Dict(String, Bool), List(json.Json))
INFERREDfn(List($package/marksy/marksy/ast.Block), $package/marksy/marksy/html.Options, $package/pooka_stdlib/pooka/dict.Dict(String, Bool), List($package/pooka_json/pooka/json.Json)) -> #(List($package/marksy/marksy/ast.Block), $package/pooka_stdlib/pooka/dict.Dict(String, Bool), List($package/pooka_json/pooka/json.Json))
function

slug

src/jinks/markdown.pooka:166
slug(text: String) -> String
INFERREDfn(String) -> String
function

unique

src/jinks/markdown.pooka:172
unique(base: String, used: dict.Dict(String, Bool), number: Int) -> String
INFERREDfn(String, $package/pooka_stdlib/pooka/dict.Dict(String, Bool), Int) -> String
function

plain

src/jinks/markdown.pooka:183
plain(inlines: List(ast.Inline)) -> String
INFERREDfn(List($package/marksy/marksy/ast.Inline)) -> String
function

safe_inlines

src/jinks/markdown.pooka:201
safe_inlines(inlines: List(ast.Inline), options: html.Options) -> List(
  ast.Inline
)
INFERREDfn(List($package/marksy/marksy/ast.Inline), $package/marksy/marksy/html.Options) -> List($package/marksy/marksy/ast.Inline)