# TODO: make this more sensible: # - separate tests for # 1. features that are "copy-and-pasted" from `Markdown` module # 2. features that are extended by Weave using Weave: WeaveMarkdown, Markdown # Test markdown2html writer html = WeaveMarkdown.html(Markdown.parse(""" # H1 ## H2 ## H3 Some **text** with different [^note] *formatting* and \$math\$ and text. `some code` with [link](http://github.com) [^note]: test note --- \$more math\$ * List one * List two 1. List one 2. List two ```julia x = 3 ``` !!! note "Something" Test admonition with ![Image](link/to/image.png) > Some important quote head 1 | head 2 -------|-------- `code` | no code """, flavor = WeaveMarkdown.weavemd)) ref_html = """
Some text with different [note] formatting and \$math\$ and text.
some code
with link
note
test note
\\[ more math \\]
List one
List two
List one
List two
x = 3
Something
Test admonition with
Some important quote
head 1 | head 2 |
---|---|
code | no code |
\\[\nx = 2\n\\]
" @test WeaveMarkdown.html(md.content[4]) == "\n\n"