mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-03 22:12:35 +00:00
To add fallack to blockquote when type is none
This commit is contained in:
@@ -247,7 +247,7 @@ func (renderer ConfluenceRenderer) RenderNode(
|
||||
|
||||
re := regexp.MustCompile(`[\n\t]`)
|
||||
|
||||
if quoteLevel == 0 && entering {
|
||||
if quoteLevel == 0 && entering && quoteType != None {
|
||||
if _, err := writer.Write([]byte(re.ReplaceAllString(fmt.Sprintf(`
|
||||
<ac:structured-macro ac:name="%s">
|
||||
<ac:parameter ac:name="icon">true</ac:parameter>
|
||||
@@ -257,7 +257,7 @@ func (renderer ConfluenceRenderer) RenderNode(
|
||||
}
|
||||
return bf.GoToNext
|
||||
}
|
||||
if quoteLevel == 0 && !entering {
|
||||
if quoteLevel == 0 && !entering && quoteType != None {
|
||||
if _, err := writer.Write([]byte(re.ReplaceAllString(`
|
||||
</ac:rich-text-body>
|
||||
</ac:structured-macro>
|
||||
|
||||
7
pkg/mark/testdata/quotes.html
vendored
7
pkg/mark/testdata/quotes.html
vendored
@@ -24,4 +24,9 @@ b</p>
|
||||
<li>Warn bullet 1</li>
|
||||
<li>Warn bullet 2</li>
|
||||
</ul>
|
||||
</ac:rich-text-body></ac:structured-macro>
|
||||
</ac:rich-text-body></ac:structured-macro>
|
||||
<h2 id="simple-blockquote">Simple Blockquote</h2>
|
||||
|
||||
<blockquote>
|
||||
<p>This paragraph is a simple blockquote</p>
|
||||
</blockquote>
|
||||
|
||||
4
pkg/mark/testdata/quotes.md
vendored
4
pkg/mark/testdata/quotes.md
vendored
@@ -18,3 +18,7 @@
|
||||
>
|
||||
> * Warn bullet 1
|
||||
> * Warn bullet 2
|
||||
|
||||
## Simple Blockquote
|
||||
|
||||
> This paragraph is a simple blockquote
|
||||
|
||||
Reference in New Issue
Block a user