Sign in

    himeno/mopress/markdown does not have a README file

    Markdown

    type Markdown = Array[Block]

    An Array is a collection of values that supports random access and can grow in size.

    Plainable

    pub trait Plainable {
    fn to_plain(self : Self) -> String
    }

    Types that can be rendered to a plain-text representation with all markup stripped.
    impl Plainable for Array[T]

    Block

    pub(all) enum Block {
    Heading(Int, Array[Inline])
    Paragraph(Array[Inline])
    ThematicBreak
    CodeBlock(String?, String)
    BlockQuote(Array[Block])
    List(ListBlock)
    HtmlBlock(String)
    Table(TableBlock)
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    A single block-level Markdown element.
    impl Plainable for Block

    Inline

    pub(all) enum Inline {
    Text(String)
    Emphasis(Array[Inline])
    Strong(Array[Inline])
    Code(String)
    Link(Array[Inline], String)
    Image(String, String)
    Html(String)
    SoftBreak
    HardBreak
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    A single inline-level Markdown element.
    impl Plainable for Inline

    ListBlock

    pub(all) struct ListBlock {
    ordered : Bool
    start : Int?
    items : Array[Array[Block]]
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    An ordered or unordered list block.

    TableBlock

    A table block, with its header row and body rows, each cell holding inline content.

    parse_markdown

    fn[T : Show] parse_markdown(input : T) -> Array[Block]

    Parses input (any Show-able value, typically a String of raw Markdown source) into a Markdown AST.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io