mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-18 14:15:44 +01:00
Write media, colours, alignment, panels, expands and task lists as HTML in adfToHtml and read them back in htmlToAdf
This commit is contained in:
+13
-4
@@ -373,9 +373,15 @@ Weather permitting.
|
||||
`adfToHtml`, round-trip holds:
|
||||
|
||||
```html
|
||||
<div class="adf-carry" data-adf="{"attrs":{"panelType":"warning"},"content":[{"content":[{"text":"Check the collation before importing.","type":"text"}],"type":"paragraph"}],"type":"panel"}"><p>Check the collation before importing.</p></div>
|
||||
<div class="adf-carry" data-adf="{"attrs":{"localId":"01a0337c-561a-75aa-b629-3801f68839ad","panelType":"info"},"content":[{"content":[{"text":"Backups run at 02:00.","type":"text"}],"type":"paragraph"}],"type":"panel"}"><p>Backups run at 02:00.</p></div>
|
||||
<div class="adf-carry" data-adf="{"attrs":{"panelColor":"#c9372c","panelIcon":":rainbow:","panelIconId":"1f308","panelIconText":"🌈","panelType":"custom"},"content":[{"content":[{"text":"Weather permitting.","type":"text"}],"type":"paragraph"}],"type":"panel"}"><p>Weather permitting.</p></div>
|
||||
<div class="adf-panel" data-panel-type="warning">
|
||||
<p>Check the collation before importing.</p>
|
||||
</div>
|
||||
<div class="adf-panel" data-local-id="01a0337c-561a-75aa-b629-3801f68839ad" data-panel-type="info">
|
||||
<p>Backups run at 02:00.</p>
|
||||
</div>
|
||||
<div class="adf-panel" data-panel-color="#c9372c" data-panel-icon=":rainbow:" data-panel-icon-id="1f308" data-panel-icon-text="🌈" data-panel-type="custom">
|
||||
<p>Weather permitting.</p>
|
||||
</div>
|
||||
```
|
||||
|
||||
## Task list
|
||||
@@ -588,5 +594,8 @@ The card below has no spelling yet.
|
||||
|
||||
```html
|
||||
<div class="adf-carry" data-adf="{"attrs":{"url":"https://example.com/roadmap"},"type":"blockCard"}"><p><a href="https://example.com/roadmap">https://example.com/roadmap</a></p></div>
|
||||
<div class="adf-carry" data-adf="{"attrs":{"panelType":"info"},"content":[{"content":[{"text":"The card below has no spelling yet.","type":"text"}],"type":"paragraph"},{"attrs":{"layout":"wide","url":"https://example.com/board","width":100},"type":"embedCard"}],"type":"panel"}"><p>The card below has no spelling yet.</p><p><a href="https://example.com/board">https://example.com/board</a></p></div>
|
||||
<div class="adf-panel" data-panel-type="info">
|
||||
<p>The card below has no spelling yet.</p>
|
||||
<div class="adf-carry" data-adf="{"attrs":{"layout":"wide","url":"https://example.com/board","width":100},"type":"embedCard"}"><p><a href="https://example.com/board">https://example.com/board</a></p></div>
|
||||
</div>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user