feat: add GitHub Alerts transformer and renderers

Co-Authored-By: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
Noam Asor
2026-03-30 14:04:18 +02:00
committed by Manuel Rüger
parent b1de69c46a
commit 1c1eeb84fb
12 changed files with 1005 additions and 88 deletions

10
testdata/quotes.html vendored
View File

@@ -49,7 +49,7 @@ b</p>
<h2 id="GH-Alerts-Heading">GH Alerts Heading</h2>
<h3 id="Note-Type-Alert-Heading">Note Type Alert Heading</h3>
<ac:structured-macro ac:name="info"><ac:parameter ac:name="icon">true</ac:parameter><ac:rich-text-body>
<p>[!NOTE]</p>
<p>Note</p>
<ul>
<li>Note bullet 1</li>
<li>Note bullet 2</li>
@@ -57,7 +57,7 @@ b</p>
</ac:rich-text-body></ac:structured-macro>
<h3 id="Tip-Type-Alert-Heading">Tip Type Alert Heading</h3>
<ac:structured-macro ac:name="tip"><ac:parameter ac:name="icon">true</ac:parameter><ac:rich-text-body>
<p>[!TIP]</p>
<p>Tip</p>
<ul>
<li>Tip bullet 1</li>
<li>Tip bullet 2</li>
@@ -65,7 +65,7 @@ b</p>
</ac:rich-text-body></ac:structured-macro>
<h3 id="Warning-Type-Alert-Heading">Warning Type Alert Heading</h3>
<ac:structured-macro ac:name="note"><ac:parameter ac:name="icon">true</ac:parameter><ac:rich-text-body>
<p>[!WARNING]</p>
<p>Warning</p>
<ul>
<li>Warning bullet 1</li>
<li>Warning bullet 2</li>
@@ -73,14 +73,14 @@ b</p>
</ac:rich-text-body></ac:structured-macro>
<h3 id="Important/Caution-Type-Alert-Heading">Important/Caution Type Alert Heading</h3>
<ac:structured-macro ac:name="info"><ac:parameter ac:name="icon">true</ac:parameter><ac:rich-text-body>
<p>[!IMPORTANT]</p>
<p>Important</p>
<ul>
<li>Important bullet 1</li>
<li>Important bullet 2</li>
</ul>
</ac:rich-text-body></ac:structured-macro>
<ac:structured-macro ac:name="warning"><ac:parameter ac:name="icon">true</ac:parameter><ac:rich-text-body>
<p>[!CAUTION]</p>
<p>Caution</p>
<ul>
<li>Important bullet 1</li>
<li>Important bullet 2</li>