To add fallack to blockquote when type is none

This commit is contained in:
Noam Asor
2023-01-28 21:15:31 +01:00
parent cd08a70ba9
commit ce9573a86e
4 changed files with 21 additions and 3 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -18,3 +18,7 @@
>
> * Warn bullet 1
> * Warn bullet 2
## Simple Blockquote
> This paragraph is a simple blockquote