git.iko.soy/typeable/pandoc
on master help sign in
Jira: require jira-wiki-markup 1.3.3

* Modified the Doc parser to skip leading blank lines. This fixes parsing of documents which start with multiple blank lines. (#7095) * Prevent URLs within link aliases to be treated as autolinks. (#6944) Fixes: #7095 Fixes: #6944

commit8ffd4159d6f0ca4f13a84b27e3f8654f01c63d59 authorAlbert Krewinkel <albert@zeitkraut.de> dateFri 12 Feb 2021, 16:38 (6 years ago) parent8c2618e
3 files changed+9−2
pandoc.cabal+1−1 stack.yaml+1−1 test/Tests/Readers/Jira.hs+7
pandoc.cabal+1−1
@@ -470,7 +470,7 @@ library
470470 http-client-tls >= 0.2.4 && < 0.4,
471471 http-types >= 0.8 && < 0.13,
472472 ipynb >= 0.1 && < 0.2,
473− jira-wiki-markup >= 1.3.2 && < 1.4,
473+ jira-wiki-markup >= 1.3.3 && < 1.4,
474474 mtl >= 2.2 && < 2.3,
475475 network >= 2.6,
476476 network-uri >= 2.6 && < 2.7,
stack.yaml+1−1
@@ -7,7 +7,7 @@ packages:
77extra-deps:
88- hslua-1.3.0
99- hslua-module-path-0.1.0
10−- jira-wiki-markup-1.3.2
10+- jira-wiki-markup-1.3.3
1111- commonmark-0.1.1.4
1212- commonmark-extensions-0.2.0.4
1313- commonmark-pandoc-0.2.0.1
test/Tests/Readers/Jira.hs+7
@@ -34,6 +34,9 @@ tests =
3434 [ testGroup "para"
3535 [ "Simple sentence" =:
3636 "Hello, World!" =?> para "Hello, World!"
37+
38+ , "leading blank lines" =:
39+ "\n\ntext" =?> para "text"
3740 ]
3841
3942 , testGroup "header"
@@ -131,6 +134,10 @@ tests =
131134 "[Example|https://example.org]" =?>
132135 para (link "https://example.org" "" "Example")
133136
137+ , "URL in alias" =:
138+ "[See https://example.com|https://example.com]" =?>
139+ para (link "https://example.com" "" "See https://example.com")
140+
134141 , "email" =:
135142 "[mailto:me@example.org]" =?>
136143 para (link "mailto:me@example.org" "" "me@example.org")