From 396d90b3e11b71fd94ef2c06165872e496ba41b2 Mon Sep 17 00:00:00 2001 From: Wataru Ashihara Date: Sun, 17 May 2020 18:21:08 +0900 Subject: testing: Markdown in HTML --- testing/055/md_055_markdown.xml | 6 ++++++ testing/055_markdown.md | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/testing/055/md_055_markdown.xml b/testing/055/md_055_markdown.xml index 18555aa..6b640f4 100644 --- a/testing/055/md_055_markdown.xml +++ b/testing/055/md_055_markdown.xml @@ -25,6 +25,12 @@ Dash - NDash MDash EDash - ENDash -- EMDash --- E3Dash --- + + Markdown in HTML + + **Header3** blah blah blah + + diff --git a/testing/055_markdown.md b/testing/055_markdown.md index 375040e..695c340 100644 --- a/testing/055_markdown.md +++ b/testing/055_markdown.md @@ -22,3 +22,7 @@ More text [U]: http://example.com/last-line Dash - NDash -- MDash --- EDash \- ENDash \-- EMDash \--- E3Dash \-\-\- + +## Markdown in HTML + +

**Header3** blah _blah_ `blah`

-- cgit v0.12 From 75788787883ae8031f2de1fbafed052462c5356d Mon Sep 17 00:00:00 2001 From: Wataru Ashihara Date: Sun, 17 May 2020 16:58:59 +0900 Subject: issue #7781: allow '>' before Markdown emphasis --- src/markdown.cpp | 4 ++-- testing/055/md_055_markdown.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/markdown.cpp b/src/markdown.cpp index b04ab2a..4f9d483 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -70,8 +70,8 @@ // is character at position i in data allowed before an emphasis section #define isOpenEmphChar(i) \ (data[i]=='\n' || data[i]==' ' || data[i]=='\'' || data[i]=='<' || \ - data[i]=='{' || data[i]=='(' || data[i]=='[' || data[i]==',' || \ - data[i]==':' || data[i]==';') + data[i]=='>' || data[i]=='{' || data[i]=='(' || data[i]=='[' || \ + data[i]==',' || data[i]==':' || data[i]==';') // is character at position i in data an escape that prevents ending an emphasis section // so for example *bla (*.txt) is cool* diff --git a/testing/055/md_055_markdown.xml b/testing/055/md_055_markdown.xml index 6b640f4..d814788 100644 --- a/testing/055/md_055_markdown.xml +++ b/testing/055/md_055_markdown.xml @@ -28,7 +28,7 @@ Markdown in HTML - **Header3** blah blah blah + Header3 blah blah blah -- cgit v0.12