# This file is part of NIT ( http://www.nitlanguage.org ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module test_commonmark_block_quotes is test import test_markdown class TestCommonmarkBlockQuotes super TestMarkdownHtml test fun test191 is test do var md = """> # Foo\n> bar\n> baz\n""" var html = """
\n

Foo

\n

bar\nbaz

\n
\n""" assert md_to_html(md) == html end fun test192 is test do var md = """># Foo\n>bar\n> baz\n""" var html = """
\n

Foo

\n

bar\nbaz

\n
\n""" assert md_to_html(md) == html end fun test193 is test do var md = """ > # Foo\n > bar\n > baz\n""" var html = """
\n

Foo

\n

bar\nbaz

\n
\n""" assert md_to_html(md) == html end fun test194 is test do var md = """ > # Foo\n > bar\n > baz\n""" var html = """
> # Foo\n> bar\n> baz\n
\n""" assert md_to_html(md) == html end fun test195 is test do var md = """> # Foo\n> bar\nbaz\n""" var html = """
\n

Foo

\n

bar\nbaz

\n
\n""" assert md_to_html(md) == html end fun test196 is test do var md = """> bar\nbaz\n> foo\n""" var html = """
\n

bar\nbaz\nfoo

\n
\n""" assert md_to_html(md) == html end fun test197 is test do var md = """> foo\n---\n""" var html = """
\n

foo

\n
\n
\n""" assert md_to_html(md) == html end fun test198 is test do var md = """> - foo\n- bar\n""" var html = """
\n\n
\n\n""" assert md_to_html(md) == html end fun test199 is test do var md = """> foo\n bar\n""" var html = """
\n
foo\n
\n
\n
bar\n
\n""" assert md_to_html(md) == html end fun test200 is test do var md = """> ```\nfoo\n```\n""" var html = """
\n
\n
\n

foo

\n
\n""" assert md_to_html(md) == html end fun test201 is test do var md = """> foo\n - bar\n""" var html = """
\n

foo\n- bar

\n
\n""" assert md_to_html(md) == html end fun test202 is test do var md = """>\n""" var html = """
\n
\n""" assert md_to_html(md) == html end fun test203 is test do var md = """>\n> \n> \n""" var html = """
\n
\n""" assert md_to_html(md) == html end fun test204 is test do var md = """>\n> foo\n> \n""" var html = """
\n

foo

\n
\n""" assert md_to_html(md) == html end fun test205 is test do var md = """> foo\n\n> bar\n""" var html = """
\n

foo

\n
\n
\n

bar

\n
\n""" assert md_to_html(md) == html end fun test206 is test do var md = """> foo\n> bar\n""" var html = """
\n

foo\nbar

\n
\n""" assert md_to_html(md) == html end fun test207 is test do var md = """> foo\n>\n> bar\n""" var html = """
\n

foo

\n

bar

\n
\n""" assert md_to_html(md) == html end fun test208 is test do var md = """foo\n> bar\n""" var html = """

foo

\n
\n

bar

\n
\n""" assert md_to_html(md) == html end fun test209 is test do var md = """> aaa\n***\n> bbb\n""" var html = """
\n

aaa

\n
\n
\n
\n

bbb

\n
\n""" assert md_to_html(md) == html end fun test210 is test do var md = """> bar\nbaz\n""" var html = """
\n

bar\nbaz

\n
\n""" assert md_to_html(md) == html end fun test211 is test do var md = """> bar\n\nbaz\n""" var html = """
\n

bar

\n
\n

baz

\n""" assert md_to_html(md) == html end fun test212 is test do var md = """> bar\n>\nbaz\n""" var html = """
\n

bar

\n
\n

baz

\n""" assert md_to_html(md) == html end fun test213 is test do var md = """> > > foo\nbar\n""" var html = """
\n
\n
\n

foo\nbar

\n
\n
\n
\n""" assert md_to_html(md) == html end fun test214 is test do var md = """>>> foo\n> bar\n>>baz\n""" var html = """
\n
\n
\n

foo\nbar\nbaz

\n
\n
\n
\n""" assert md_to_html(md) == html end fun test215 is test do var md = """> code\n\n> not code\n""" var html = """
\n
code\n
\n
\n
\n

not code

\n
\n""" assert md_to_html(md) == html end end