Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Fixes captions for annotations

AuthorDaveJarvis <email>
Date2023-11-26 22:47:25 GMT-0800
Commitdcd05dc8493557dfb441a82b90a0055c745dd4d0
Parente9d077a
Delta53 lines added, 4 lines removed, 49-line increase
src/test/java/com/keenwrite/processors/markdown/extensions/references/CaptionsAndCrossReferencesExtensionTest.java
"""
::: warning
- Do not eat processed sugar.
+ Do not eat processed **sugar**.
+
+ Seriously.
:::
:: Caption {#warning:sugar}
""",
"""
- <p><span class="caption">Caption <a data-type="warning" name="sugar" /></span></p>
- <div class="warning">
- <p>Do not eat processed sugar.</p>
+ <p><span class="caption">Caption <a data-type="warning" name="sugar" /></span></p><div class="warning">
+ <p>Do not eat processed <strong>sugar</strong>.</p>
+ <p>Seriously.</p>
</div>
"""
</tbody>
</table>
+ """
+ ),
+ args(
+ """
+ ``` diagram-plantuml
+ @startuml
+ Alice -> Bob: Request
+ Bob --> Alice: Response
+ @enduml
+ ```
+
+ :: Diagram {#dia:seq1}
+ """,
+ """
+ <p><span class="caption">Diagram <a data-type="dia" name="seq1" /></span></p>
+ <pre><code class="language-diagram-plantuml">@startuml
+ Alice -&gt; Bob: Request
+ Bob --&gt; Alice: Response
+ @enduml
+ </code></pre>
+ """
+ ),
+ args(
+ """
+ ::: lyrics
+ Weather hit, meltin' road.
+ Our mama's gone, six feet cold.
+ Gas on down to future town,
+ Make prophecy take hold.
+
+ Warnin' sign, cent'ry old:
+ When buyin' coal, air is sold.
+ Aim our toil, ten figure oil;
+ Trade life on Earth for gold.
+ :::
+ """,
+ """
+ <div class="lyrics">
+ <p>Weather hit, meltin' road.
+ Our mama's gone, six feet cold.
+ Gas on down to future town,
+ Make prophecy take hold.</p>
+ <p>Warnin' sign, cent'ry old:
+ When buyin' coal, air is sold.
+ Aim our toil, ten figure oil;
+ Trade life on Earth for gold.</p>
+ </div>
"""
)