Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/arowM/elm-markdown-ast.
What we checked: Rebuilt with git archive from commit c3aad78c37a3 of https://github.com/arowM/elm-markdown-ast (zip prefix arowM-elm-markdown-ast-f03a691/, America/Los_Angeles times, the tag object f03a69160148 it had before it was re-made, tagger time 2023-03-19 09:20 UTC): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 546187a2cf5d5b7dd7113156d05631ff46a4f1df.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/arowM/elm-markdown-ast/zipball/1.0.0/
Elm representation of markdown AST (abstract syntax tree).
You can render your AST as markdown text, or also preview the content as HTML page.
import MarkdownAst as Ast
myMarkdown : Ast.Section
myMarkdown =
Ast.Section
{ title = "Markdown AST"
, body =
[ Ast.ParagraphBlock
[ Ast.PlainText "Markdown \n AST represents "
, Ast.Emphasis " \n\tMarkdown \n\n"
, Ast.PlainText " AST."
]
]
, children =
[ Ast.Section
{ title = "Section"
, body =
[ Ast.ListBlock
{ ordered = False
, items =
[ { content =
[ Ast.PlainText "List Item 1"
]
, children =
[ Ast.ListBlock
{ ordered = True
, items =
[ { content =
[ Ast.PlainText "Child item"
]
, children = []
}
]
}
]
}
, { content =
[ Ast.PlainText "List Item 2"
]
, children =
[ Ast.ParagraphBlock
[ Ast.PlainText "Child paragraph."
, Ast.PlainText " [Link like](./src) in plain text.\n1. foo"
, Ast.LineBreak
, Ast.PlainText "2. bar"
]
, Ast.ParagraphBlock
[ Ast.PlainText "1. dummy ordered list item"
]
, Ast.CodeBlock
"""elm
type Builder parent elem =
...
...
"""
]
}
, { content =
[ Ast.PlainText "List Item 3"
]
, children =
[ Ast.QuoteBlock
[ Ast.ParagraphBlock
[ Ast.Link
{ text = "\tChild paragraph\n\n"
, href = "./bar"
, title = Just "\n title \there "
}
, Ast.PlainText "."
]
, Ast.CodeBlock
"""elm
type Builder parent elem =
...
...
"""
]
, Ast.ParagraphBlock
[ Ast.Image
{ src = "./foo"
, alt = " dummy image\n"
, title = Nothing
}
]
]
}
, { content =
[ Ast.PlainText "List Item 4"
]
, children = []
}
]
}
]
, children = []
}
]
}