Markdown parse transpile ui

markdown-parse-transpile-ui (undefined operation)

Size: undefined LOC,

Imported dependencies:

  • From Core Libraries: none
  • From Packages: none
  • From Operations: none

Functions

renderMarkdownContent

Max. indexation depth: 6,

renders a markdown striing (without frontmatter)

Returns: unknown

Arguments

content: string

config (optional): object

Properties:

NameTypeDescription
big (optional)boolean

renderMarkdownTitle

Max. indexation depth: 3,

renders a markdown title (level should be 1 for h1 and 6 for h6)

Returns: unknown

Arguments

title: string

level: number

renderMarkdownChunk

Max. indexation depth: 3,

renders a MarkdownChunk interface

Returns: unknown

Arguments

chunk: object

Properties:

NameTypeDescription
levelnumber0 is a paragraph 1-6 is h1 until h6
content (optional)string
title (optional)stringNB: title can also be an empty string ("")
children (optional)arrayall content until the next title. it's either a content array if there's any titles found, or a string[] if it's paragraphs

renderMarkdownParse

Max. indexation depth: 3,

renders the MardkownParse interface (including frontmatter)

Returns: unknown

Arguments

markdownParse: object

Properties:

NameTypeDescription
fileName (optional)stringif available, this can be the filename of the markdown in this markdownparse. Can be used for things like merging
parametersobjectTODO: either make a special category crud for the category model would be nice maybe (especially a backend that makes sure all references stay updated would be epic)
content (optional)arraystructured content based on h1, h2, h3, etc (paragraphs, recursive)
rawstringraw markdown without frontmatter

renderFrontMatter

Max. indexation depth: 6,

Renders markdown frontmatter parameters (and optionally a spacer)

Returns: unknown

Arguments

parameters: object

TODO: either make a special category crud for the category model would be nice maybe (especially a backend that makes sure all references stay updated would be epic)

Properties:

NameTypeDescription

config (optional): object

Properties:

NameTypeDescription
renderSpacer (optional)boolean