normalizeHeading Function

Defined in: lib/RendererUtils.js

Convert a markdown heading string to URL-friendly plain-text string.

Signature

normalizeHeading(str: String, isMarkdown: Boolean) -> String

Parameters (2)

str
String

Only the first line of the string will be processed.

isMarkdown
Boolean

If false, no implicit rendering to text is done. Pass this if you already called RendererUtils.markdownToText on your string or you know it contains no markdown (or HTML).

Defaults to: true

Return Value

String