@flamingo-stack/openframe-frontend-core 0.0.508 → 0.0.509
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat-protocol/decode.d.ts +58 -0
- package/dist/chat-protocol/decode.d.ts.map +1 -0
- package/dist/chat-protocol/encode.d.ts +44 -0
- package/dist/chat-protocol/encode.d.ts.map +1 -0
- package/dist/chat-protocol/env-flag.d.ts +35 -0
- package/dist/chat-protocol/env-flag.d.ts.map +1 -0
- package/dist/chat-protocol/events.d.ts +216 -0
- package/dist/chat-protocol/events.d.ts.map +1 -0
- package/dist/chat-protocol/frames.d.ts +213 -0
- package/dist/chat-protocol/frames.d.ts.map +1 -0
- package/dist/chat-protocol/index.cjs +506 -0
- package/dist/chat-protocol/index.cjs.map +1 -0
- package/dist/chat-protocol/index.d.ts +18 -0
- package/dist/chat-protocol/index.d.ts.map +1 -0
- package/dist/chat-protocol/index.js +490 -0
- package/dist/chat-protocol/index.js.map +1 -0
- package/dist/chat-protocol/ip-normalize.d.ts +44 -0
- package/dist/chat-protocol/ip-normalize.d.ts.map +1 -0
- package/dist/chat-protocol/nats-decoder.d.ts +26 -0
- package/dist/chat-protocol/nats-decoder.d.ts.map +1 -0
- package/dist/{chunk-3SQ5KXHQ.cjs → chunk-2T4GTV25.cjs} +9 -9
- package/dist/{chunk-3SQ5KXHQ.cjs.map → chunk-2T4GTV25.cjs.map} +1 -1
- package/dist/{chunk-CWAOV2FK.cjs → chunk-3CGZPAGR.cjs} +3 -3
- package/dist/{chunk-CWAOV2FK.cjs.map → chunk-3CGZPAGR.cjs.map} +1 -1
- package/dist/{chunk-TLMJHMXJ.js → chunk-3QSR22IC.js} +12 -12
- package/dist/chunk-3QSR22IC.js.map +1 -0
- package/dist/{chunk-TWYNR4TZ.cjs → chunk-4G5TLHJD.cjs} +7141 -4799
- package/dist/chunk-4G5TLHJD.cjs.map +1 -0
- package/dist/{chunk-ADPMHWOE.js → chunk-72XAID7Y.js} +4 -4
- package/dist/{chunk-PAGKRNWK.js → chunk-7WZHBQ4J.js} +2 -2
- package/dist/{chunk-OCEKO5CW.js → chunk-AEELJC4N.js} +12106 -9764
- package/dist/chunk-AEELJC4N.js.map +1 -0
- package/dist/{chunk-Z42BGM6Q.cjs → chunk-BT2WWDFP.cjs} +5 -5
- package/dist/{chunk-Z42BGM6Q.cjs.map → chunk-BT2WWDFP.cjs.map} +1 -1
- package/dist/{chunk-7LEL3RIX.cjs → chunk-C7OY3PQP.cjs} +11 -11
- package/dist/{chunk-7LEL3RIX.cjs.map → chunk-C7OY3PQP.cjs.map} +1 -1
- package/dist/{chunk-RHGGEKPQ.cjs → chunk-CIOLOQKQ.cjs} +4 -4
- package/dist/{chunk-RHGGEKPQ.cjs.map → chunk-CIOLOQKQ.cjs.map} +1 -1
- package/dist/{chunk-TSZHM74B.js → chunk-DC2TKS7C.js} +2 -2
- package/dist/{chunk-M2GOR3XQ.cjs → chunk-DYPYR7FR.cjs} +87 -87
- package/dist/{chunk-M2GOR3XQ.cjs.map → chunk-DYPYR7FR.cjs.map} +1 -1
- package/dist/{chunk-I64ABCDX.js → chunk-I2B6X77L.js} +2 -2
- package/dist/{chunk-NIZDKTGL.cjs → chunk-K5MSCMDK.cjs} +37 -37
- package/dist/{chunk-NIZDKTGL.cjs.map → chunk-K5MSCMDK.cjs.map} +1 -1
- package/dist/{chunk-DTYRYB2N.js → chunk-K6QTZ7CZ.js} +2 -2
- package/dist/{chunk-4LTMXDUS.js → chunk-KBN7PMFT.js} +2 -2
- package/dist/{chunk-TBMV7I5N.js → chunk-KXZO2WZX.js} +2 -2
- package/dist/{chunk-QTYZMP6D.cjs → chunk-LBAKLT6T.cjs} +62 -62
- package/dist/chunk-LBAKLT6T.cjs.map +1 -0
- package/dist/{chunk-KEBYLU3U.js → chunk-LFUPI7VX.js} +2 -2
- package/dist/{chunk-LDTR4IVZ.cjs → chunk-M37PBG4N.cjs} +31 -31
- package/dist/{chunk-LDTR4IVZ.cjs.map → chunk-M37PBG4N.cjs.map} +1 -1
- package/dist/{chunk-WA7RR64F.js → chunk-PO5O654H.js} +6 -5
- package/dist/chunk-PO5O654H.js.map +1 -0
- package/dist/{chunk-WK4N5VBX.cjs → chunk-QJJISLPA.cjs} +28 -27
- package/dist/chunk-QJJISLPA.cjs.map +1 -0
- package/dist/{chunk-2F44PLTV.cjs → chunk-T7MCSA55.cjs} +26 -26
- package/dist/{chunk-2F44PLTV.cjs.map → chunk-T7MCSA55.cjs.map} +1 -1
- package/dist/{chunk-WJQHJD7J.js → chunk-TWSKTJHW.js} +2 -2
- package/dist/{chunk-ZSQHZYCO.cjs → chunk-UQDMJ6DH.cjs} +13 -13
- package/dist/{chunk-ZSQHZYCO.cjs.map → chunk-UQDMJ6DH.cjs.map} +1 -1
- package/dist/{chunk-TZRUCD56.js → chunk-V3ZAAFE3.js} +5 -5
- package/dist/{chunk-LRGHJPET.js → chunk-XGIFOHKE.js} +2 -2
- package/dist/{chunk-POOMO3PA.cjs → chunk-YQEPRYT5.cjs} +7 -7
- package/dist/{chunk-POOMO3PA.cjs.map → chunk-YQEPRYT5.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +0 -1
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chunk-catchup.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +15 -48
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts +10 -57
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +10 -2
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +21 -13
- package/dist/components/chat/stream/chat-dialog-store.d.ts +184 -0
- package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -0
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +380 -0
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -0
- package/dist/components/chat/stream/delta-batcher.d.ts +51 -0
- package/dist/components/chat/stream/delta-batcher.d.ts.map +1 -0
- package/dist/components/chat/stream/index.d.ts +17 -0
- package/dist/components/chat/stream/index.d.ts.map +1 -0
- package/dist/components/chat/stream/message-mutations.d.ts +77 -0
- package/dist/components/chat/stream/message-mutations.d.ts.map +1 -0
- package/dist/components/chat/stream/use-chat-stream-reducer.d.ts +22 -0
- package/dist/components/chat/stream/use-chat-stream-reducer.d.ts.map +1 -0
- package/dist/components/chat/types/api.types.d.ts +1 -81
- package/dist/components/chat/types/api.types.d.ts.map +1 -1
- package/dist/components/chat/types/processing.types.d.ts +2 -93
- package/dist/components/chat/types/processing.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +15 -0
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts +34 -6
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
- package/dist/components/chat/utils/history-merge.d.ts.map +1 -1
- package/dist/components/chat/utils/index.d.ts +2 -3
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/process-historical-messages.d.ts +59 -11
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +174 -132
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +65 -23
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +44 -2
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -2
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +55 -13
- package/dist/components/ui/markdown/base-components.d.ts +51 -0
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -0
- package/dist/components/ui/markdown/engine.d.ts +99 -0
- package/dist/components/ui/markdown/engine.d.ts.map +1 -0
- package/dist/components/ui/markdown/heading-ids.d.ts +65 -0
- package/dist/components/ui/markdown/heading-ids.d.ts.map +1 -0
- package/dist/components/ui/markdown/index.d.ts +18 -0
- package/dist/components/ui/markdown/index.d.ts.map +1 -0
- package/dist/components/ui/markdown/mermaid-diagram.d.ts +79 -0
- package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +1 -0
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts +14 -0
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +1 -0
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +40 -0
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -0
- package/dist/components/ui/markdown/rich/shortcodes.d.ts +8 -0
- package/dist/components/ui/markdown/rich/shortcodes.d.ts.map +1 -0
- package/dist/components/ui/markdown/sanitize.d.ts +153 -0
- package/dist/components/ui/markdown/sanitize.d.ts.map +1 -0
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +23 -0
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +1 -0
- package/dist/components/ui/markdown/streaming.d.ts +78 -0
- package/dist/components/ui/markdown/streaming.d.ts.map +1 -0
- package/dist/components/ui/markdown/text-size.d.ts +34 -0
- package/dist/components/ui/markdown/text-size.d.ts.map +1 -0
- package/dist/index.cjs +60 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +71 -13
- package/dist/utils/index.cjs +169 -40
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +162 -41
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/markdown-fences.d.ts +42 -0
- package/dist/utils/markdown-fences.d.ts.map +1 -0
- package/dist/utils/markdown-heading-id.d.ts +85 -0
- package/dist/utils/markdown-heading-id.d.ts.map +1 -0
- package/dist/utils/markdown-section-extractor.d.ts.map +1 -1
- package/package.json +7 -1
- package/src/chat-protocol/__tests__/__snapshots__/nats-decoder-golden.test.ts.snap +319 -0
- package/src/chat-protocol/__tests__/chat-protocol.test.ts +516 -0
- package/src/chat-protocol/__tests__/env-flag.test.ts +52 -0
- package/src/chat-protocol/__tests__/ip-normalize.test.ts +136 -0
- package/src/chat-protocol/__tests__/nats-decoder-golden.test.ts +237 -0
- package/src/chat-protocol/decode.ts +278 -0
- package/src/chat-protocol/encode.ts +71 -0
- package/src/chat-protocol/env-flag.ts +39 -0
- package/src/chat-protocol/events.ts +254 -0
- package/src/chat-protocol/frames.ts +245 -0
- package/src/chat-protocol/index.ts +21 -0
- package/src/chat-protocol/ip-normalize.ts +146 -0
- package/src/chat-protocol/nats-decoder.ts +264 -0
- package/src/components/chat/.chat-message-list.md +10 -6
- package/src/components/chat/__tests__/chat-message-list.test.tsx +450 -9
- package/src/components/chat/__tests__/chat-message-streaming-memo.test.tsx +207 -0
- package/src/components/chat/__tests__/chat-pending-turn.test.tsx +250 -0
- package/src/components/chat/chat-message-enhanced.tsx +122 -20
- package/src/components/chat/chat-message-list.tsx +515 -133
- package/src/components/chat/embeddable-chat.tsx +6 -0
- package/src/components/chat/hooks/.index.md +30 -33
- package/src/components/chat/hooks/.use-nats-chat-adapter.md +36 -55
- package/src/components/chat/hooks/__tests__/__snapshots__/conversation-id-persistence-golden.test.ts.snap +37 -0
- package/src/components/chat/hooks/__tests__/__snapshots__/sse-stream-golden.test.ts.snap +0 -0
- package/src/components/chat/hooks/__tests__/chunk-catchup-dialog-staleness.test.ts +92 -0
- package/src/components/chat/hooks/__tests__/conversation-id-persistence-golden.test.ts +438 -0
- package/src/components/chat/hooks/__tests__/sse-stream-golden.test.ts +318 -0
- package/src/components/chat/hooks/index.ts +0 -1
- package/src/components/chat/hooks/use-chat.ts +8 -0
- package/src/components/chat/hooks/use-chunk-catchup.ts +26 -1
- package/src/components/chat/hooks/use-nats-chat-adapter.ts +254 -825
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +380 -684
- package/src/components/chat/index.ts +5 -0
- package/src/components/chat/stream/__tests__/__snapshots__/chat-stream-reducer-golden.test.ts.snap +944 -0
- package/src/components/chat/stream/__tests__/chat-dialog-store.test.ts +806 -0
- package/src/components/chat/stream/__tests__/chat-stream-reducer-golden.test.ts +467 -0
- package/src/components/chat/stream/__tests__/chat-stream-reducer.test.ts +1330 -0
- package/src/components/chat/stream/__tests__/delta-batcher.test.ts +255 -0
- package/src/components/chat/stream/__tests__/use-chat-stream-reducer.test.ts +105 -0
- package/src/components/chat/stream/chat-dialog-store.ts +536 -0
- package/src/components/chat/stream/chat-stream-reducer.ts +1928 -0
- package/src/components/chat/stream/delta-batcher.ts +168 -0
- package/src/components/chat/stream/index.ts +55 -0
- package/src/components/chat/stream/message-mutations.ts +340 -0
- package/src/components/chat/stream/use-chat-stream-reducer.ts +126 -0
- package/src/components/chat/thinking-display.tsx +1 -1
- package/src/components/chat/types/.api.types.md +39 -49
- package/src/components/chat/types/.processing.types.md +29 -58
- package/src/components/chat/types/.unified-chat-state.types.md +2 -2
- package/src/components/chat/types/api.types.ts +6 -73
- package/src/components/chat/types/processing.types.ts +11 -53
- package/src/components/chat/types/unified-chat-state.types.ts +16 -0
- package/src/components/chat/utils/.extract-incomplete-message-state.md +21 -3
- package/src/components/chat/utils/.history-merge.md +44 -3
- package/src/components/chat/utils/.index.md +31 -40
- package/src/components/chat/utils/__tests__/__snapshots__/process-historical-messages-golden.test.ts.snap +420 -0
- package/src/components/chat/utils/__tests__/__snapshots__/segment-accumulator-golden.test.ts.snap +605 -0
- package/src/components/chat/utils/__tests__/extract-incomplete-message-state.test.ts +106 -0
- package/src/components/chat/utils/__tests__/history-merge.test.ts +160 -0
- package/src/components/chat/utils/__tests__/process-historical-messages-approvals.test.ts +61 -0
- package/src/components/chat/utils/__tests__/process-historical-messages-golden.test.ts +394 -0
- package/src/components/chat/utils/__tests__/segment-accumulator-golden.test.ts +270 -0
- package/src/components/chat/utils/extract-incomplete-message-state.ts +93 -6
- package/src/components/chat/utils/history-merge.ts +85 -5
- package/src/components/chat/utils/index.ts +5 -8
- package/src/components/chat/utils/process-historical-messages.ts +361 -385
- package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +22 -4
- package/src/components/shared/legal-document/legal-document-page.tsx +1 -1
- package/src/components/shared/product-release/release-detail-page.tsx +19 -4
- package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +2420 -0
- package/src/components/ui/__tests__/markdown-parity.test.tsx +2540 -0
- package/src/components/ui/index.ts +1 -2
- package/src/components/ui/markdown/__tests__/mermaid-security.test.ts +176 -0
- package/src/components/ui/markdown/__tests__/mermaid-stale-render.test.tsx +151 -0
- package/src/components/ui/markdown/__tests__/sanitize-invariant.test.ts +354 -0
- package/src/components/ui/markdown/__tests__/sanitize-render.test.tsx +118 -0
- package/src/components/ui/markdown/__tests__/streaming.test.tsx +436 -0
- package/src/components/ui/markdown/base-components.tsx +360 -0
- package/src/components/ui/markdown/engine.tsx +315 -0
- package/src/components/ui/markdown/heading-ids.ts +239 -0
- package/src/components/ui/markdown/index.ts +49 -0
- package/src/components/ui/markdown/mermaid-diagram.tsx +323 -0
- package/src/components/ui/markdown/rich/embed-overrides.tsx +199 -0
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +184 -0
- package/src/components/ui/markdown/rich/shortcodes.ts +170 -0
- package/src/components/ui/markdown/sanitize.ts +3584 -0
- package/src/components/ui/markdown/simple-markdown-renderer.tsx +28 -0
- package/src/components/ui/markdown/streaming.ts +390 -0
- package/src/components/ui/markdown/text-size.ts +106 -0
- package/src/components/ui/release-changelog-section.tsx +1 -1
- package/src/components/ui/ticket-info-section.tsx +1 -1
- package/src/utils/index.ts +1 -0
- package/src/utils/markdown-fences.ts +127 -0
- package/src/utils/markdown-heading-id.ts +348 -0
- package/src/utils/markdown-section-extractor.ts +41 -56
- package/dist/chunk-OCEKO5CW.js.map +0 -1
- package/dist/chunk-QTYZMP6D.cjs.map +0 -1
- package/dist/chunk-TLMJHMXJ.js.map +0 -1
- package/dist/chunk-TWYNR4TZ.cjs.map +0 -1
- package/dist/chunk-WA7RR64F.js.map +0 -1
- package/dist/chunk-WK4N5VBX.cjs.map +0 -1
- package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts +0 -6
- package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts.map +0 -1
- package/dist/components/chat/utils/chunk-parser.d.ts +0 -25
- package/dist/components/chat/utils/chunk-parser.d.ts.map +0 -1
- package/dist/components/ui/rich-markdown-renderer.d.ts +0 -34
- package/dist/components/ui/rich-markdown-renderer.d.ts.map +0 -1
- package/dist/components/ui/simple-markdown-renderer.d.ts +0 -73
- package/dist/components/ui/simple-markdown-renderer.d.ts.map +0 -1
- package/src/components/chat/hooks/.use-realtime-chunk-processor.md +0 -77
- package/src/components/chat/hooks/use-realtime-chunk-processor.ts +0 -489
- package/src/components/chat/utils/.chunk-parser.md +0 -62
- package/src/components/chat/utils/chunk-parser.ts +0 -262
- package/src/components/ui/.simple-markdown-renderer.md +0 -52
- package/src/components/ui/rich-markdown-renderer.tsx +0 -1223
- package/src/components/ui/simple-markdown-renderer.tsx +0 -964
- /package/dist/{chunk-ADPMHWOE.js.map → chunk-72XAID7Y.js.map} +0 -0
- /package/dist/{chunk-PAGKRNWK.js.map → chunk-7WZHBQ4J.js.map} +0 -0
- /package/dist/{chunk-TSZHM74B.js.map → chunk-DC2TKS7C.js.map} +0 -0
- /package/dist/{chunk-I64ABCDX.js.map → chunk-I2B6X77L.js.map} +0 -0
- /package/dist/{chunk-DTYRYB2N.js.map → chunk-K6QTZ7CZ.js.map} +0 -0
- /package/dist/{chunk-4LTMXDUS.js.map → chunk-KBN7PMFT.js.map} +0 -0
- /package/dist/{chunk-TBMV7I5N.js.map → chunk-KXZO2WZX.js.map} +0 -0
- /package/dist/{chunk-KEBYLU3U.js.map → chunk-LFUPI7VX.js.map} +0 -0
- /package/dist/{chunk-WJQHJD7J.js.map → chunk-TWSKTJHW.js.map} +0 -0
- /package/dist/{chunk-TZRUCD56.js.map → chunk-V3ZAAFE3.js.map} +0 -0
- /package/dist/{chunk-LRGHJPET.js.map → chunk-XGIFOHKE.js.map} +0 -0
|
@@ -0,0 +1,2420 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: audit-reddit-embed-bq 1`] = `
|
|
4
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="reddit" data-url="https://www.reddit.com/r/msp/comments/abc/post/"></div>
|
|
5
|
+
<script async src="https://embed.reddit.com/widgets.js" charset="UTF-8"></script></article></div></div>"
|
|
6
|
+
`;
|
|
7
|
+
|
|
8
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: audit-style-attrs 1`] = `
|
|
9
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div class="takeaway" style="padding: 8px;">Key point</div>
|
|
10
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">styled para</p></article></div></div>"
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: authored-text-input 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><form><input><button>go</button></form></article></div></div>"`;
|
|
14
|
+
|
|
15
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-figma 1`] = `
|
|
16
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">design</p>
|
|
17
|
+
<div data-mock="figma" data-url="https://www.figma.com/proto/xyz/Proto-File"></div>
|
|
18
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">end</p></article></div></div>"
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-generic-link-preview 1`] = `
|
|
22
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">read</p>
|
|
23
|
+
<div data-mock="og-preview" data-url="https://blog.example.com/post-1"></div>
|
|
24
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">tonight</p></article></div></div>"
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-inside-code-not-embedded 1`] = `
|
|
28
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">code <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border">https://blog.example.com/post-3</code> inline</p>
|
|
29
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">arduino</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-arduino hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">https:<span class="hljs-comment">//blog.example.com/post-4</span>
|
|
30
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-inside-md-link-not-embedded 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">already <a href="https://blog.example.com/post-2" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 " target="_blank" rel="noopener noreferrer">a link</a> inline</p></article></div></div>"`;
|
|
34
|
+
|
|
35
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-inside-table-not-embedded 1`] = `
|
|
36
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none">
|
|
37
|
+
<div class="table-container my-6 overflow-x-auto"><div class="min-w-full border rounded-lg border-ods-border bg-ods-card"><table class="w-full table-fixed md:table-auto"><thead class="bg-ods-bg-surface"><tr><th class="px-2 md:px-4 py-3 text-left font-semibold text-ods-accent border-r last:border-r-0 break-words border-ods-border text-xs md:text-sm">Site</th></tr></thead><tbody><tr><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm"><a href="https://blog.example.com/post-5" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 " target="_blank" rel="noopener noreferrer">https://blog.example.com/post-5</a></td></tr></tbody></table></div></div></article></div></div>"
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-reddit 1`] = `
|
|
41
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">thread</p>
|
|
42
|
+
<div data-mock="reddit" data-url="https://www.reddit.com/r/msp/comments/9/thread"></div>
|
|
43
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">here</p></article></div></div>"
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-tweet 1`] = `
|
|
47
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">see</p>
|
|
48
|
+
<div data-mock="twitter" data-url="https://x.com/user/status/999888"></div>
|
|
49
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">today</p></article></div></div>"
|
|
50
|
+
`;
|
|
51
|
+
|
|
52
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: auto-url-youtube 1`] = `
|
|
53
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">watch this</p>
|
|
54
|
+
<div data-mock="video" data-kind="youtube" data-url="dQw4w9WgXcQ" data-poster=""></div>
|
|
55
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">now</p></article></div></div>"
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: bare-title-tag-is-inert 1`] = `
|
|
59
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h1 id="real-post" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">Real Post</h1>
|
|
60
|
+
Buy cheap pills
|
|
61
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">body</p></article></div></div>"
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: blockquote 1`] = `
|
|
65
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
66
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">A quoted paragraph<br>
|
|
67
|
+
spanning two lines.</p>
|
|
68
|
+
</div></blockquote></article></div></div>"
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: blockquote-with-blank-line 1`] = `
|
|
72
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
73
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">first quoted para</p>
|
|
74
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">second quoted para</p>
|
|
75
|
+
</div></blockquote></article></div></div>"
|
|
76
|
+
`;
|
|
77
|
+
|
|
78
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: closed-iframe-still-renders 1`] = `
|
|
79
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
80
|
+
<iframe src="https://example.com/frame" width="300"></iframe>
|
|
81
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
82
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">more</p></article></div></div>"
|
|
83
|
+
`;
|
|
84
|
+
|
|
85
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: closed-textarea-still-renders 1`] = `
|
|
86
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
87
|
+
<textarea>edit me</textarea>
|
|
88
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
89
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">more</p></article></div></div>"
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: comment-marker-in-inline-code-does-not-blank-to-eof 1`] = `
|
|
93
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Use <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><!--</code> to start a comment.</p>
|
|
94
|
+
<textarea>hi</textarea></article></div></div>"
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: empty-image 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"></p></article></div></div>"`;
|
|
98
|
+
|
|
99
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fence-figma-embed 1`] = `
|
|
100
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">figma</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-figma hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">https://www.figma.com/deck/q/Deck
|
|
101
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
102
|
+
`;
|
|
103
|
+
|
|
104
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fence-link-preview 1`] = `
|
|
105
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">link</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-link hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">https://example.com/fenced
|
|
106
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
107
|
+
`;
|
|
108
|
+
|
|
109
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fence-linkedin-embed 1`] = `
|
|
110
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">linkedin</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-linkedin hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">https://www.linkedin.com/posts/p_activity-2
|
|
111
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fence-reddit-embed 1`] = `
|
|
115
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">reddit</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-reddit hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">https://reddit.com/r/x/comments/2/y
|
|
116
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fence-tweet-embed 1`] = `
|
|
120
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">tweet</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-tweet hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">https://twitter.com/a/status/777
|
|
121
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
122
|
+
`;
|
|
123
|
+
|
|
124
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fence-youtube-embed 1`] = `
|
|
125
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">youtube</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-youtube hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">vidFENCE1
|
|
126
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
127
|
+
`;
|
|
128
|
+
|
|
129
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fenced-code-js 1`] = `
|
|
130
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">js</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-js hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-keyword">const</span> x = <span class="hljs-number">1</span>;
|
|
131
|
+
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(x < <span class="hljs-number">2</span> && x > <span class="hljs-number">0</span>);
|
|
132
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: fenced-code-unknown-lang 1`] = `
|
|
136
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">qwerty</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-qwerty hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">some text < with > angles
|
|
137
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
138
|
+
`;
|
|
139
|
+
|
|
140
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: gfm-table 1`] = `
|
|
141
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none">
|
|
142
|
+
<div class="table-container my-6 overflow-x-auto"><div class="min-w-full border rounded-lg border-ods-border bg-ods-card"><table class="w-full table-fixed md:table-auto"><thead class="bg-ods-bg-surface"><tr><th class="px-2 md:px-4 py-3 text-left font-semibold text-ods-accent border-r last:border-r-0 break-words border-ods-border text-xs md:text-sm">Col A</th><th class="px-2 md:px-4 py-3 text-left font-semibold text-ods-accent border-r last:border-r-0 break-words border-ods-border text-xs md:text-sm">Col B</th></tr></thead><tbody><tr><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">a1</td><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">b1</td></tr><tr><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">a2</td><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">b2</td></tr></tbody></table></div></div></article></div></div>"
|
|
143
|
+
`;
|
|
144
|
+
|
|
145
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: headings-with-emoji-and-dupes 1`] = `
|
|
146
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h1 id="getting-started" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">🚀 Getting Started</h1>
|
|
147
|
+
<h2 id="setup" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">Setup</h2>
|
|
148
|
+
<h2 id="setup-2" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">Setup</h2>
|
|
149
|
+
<h3 id="deep-dive" class="font-sans font-semibold mt-6 mb-3 text-ods-text-primary text-[24px] md:text-[28px]">Deep Dive 🔧</h3>
|
|
150
|
+
<h4 id="h4-level" class="font-sans font-semibold mt-4 mb-2 text-ods-text-primary text-[20px] md:text-[22px]">H4 level</h4>
|
|
151
|
+
<h5 id="h5-level" class="font-sans font-semibold mt-3 mb-2 text-ods-text-primary text-[18px] md:text-[20px]">H5 level</h5>
|
|
152
|
+
<h6 id="h6-level" class="font-sans font-semibold mt-3 mb-1 text-ods-text-primary text-[16px] md:text-[18px]">H6 level</h6></article></div></div>"
|
|
153
|
+
`;
|
|
154
|
+
|
|
155
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: hostile-iframe-srcdoc 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><iframe src="https://example.com/frame"></iframe></article></div></div>"`;
|
|
156
|
+
|
|
157
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: hostile-js-href 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">click</a></p></article></div></div>"`;
|
|
158
|
+
|
|
159
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: hostile-onerror 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><img data-mock="markdown-image" alt="" src="https://example.com/x.png"></article></div></div>"`;
|
|
160
|
+
|
|
161
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: hostile-script 1`] = `
|
|
162
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">before</p>
|
|
163
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><script>alert(1)</script></p>
|
|
164
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">after</p></article></div></div>"
|
|
165
|
+
`;
|
|
166
|
+
|
|
167
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: hostile-srcset 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><img data-mock="markdown-image" alt="" src="https://safe.example/a.png"></article></div></div>"`;
|
|
168
|
+
|
|
169
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: hostile-style-block 1`] = `
|
|
170
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">text</p>
|
|
171
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><style>body{display:none}</style></p>
|
|
172
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">more</p></article></div></div>"
|
|
173
|
+
`;
|
|
174
|
+
|
|
175
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: hr 1`] = `
|
|
176
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">above</p>
|
|
177
|
+
<hr class="border-0 border-t my-8 border-ods-border">
|
|
178
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">below</p></article></div></div>"
|
|
179
|
+
`;
|
|
180
|
+
|
|
181
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: images 1`] = `
|
|
182
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><img data-mock="markdown-image" alt="alt text" src="https://example.com/pic.png"></p>
|
|
183
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><img data-mock="markdown-image" alt="" src="https://example.com/no-alt.png"></p></article></div></div>"
|
|
184
|
+
`;
|
|
185
|
+
|
|
186
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: indented-code-angle-bracket-not-escaped 1`] = `
|
|
187
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Para</p>
|
|
188
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">css</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-css hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">if <span class="hljs-selector-tag">a</span> <<span class="hljs-selector-tag">b</span> then
|
|
189
|
+
done
|
|
190
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
191
|
+
`;
|
|
192
|
+
|
|
193
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: inline-code 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Use <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><their></code> and <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border">npm install</code> inline.</p></article></div></div>"`;
|
|
194
|
+
|
|
195
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: inline-code-rawtext-textarea-not-escaped 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><textarea></code> element is a form control.</p></article></div></div>"`;
|
|
196
|
+
|
|
197
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: inline-code-rawtext-title-not-escaped 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Use the <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><title></code> element for page titles.</p></article></div></div>"`;
|
|
198
|
+
|
|
199
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: inline-svg 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2"></circle><path d="M8 12l3 3 5-6"></path></svg></p></article></div></div>"`;
|
|
200
|
+
|
|
201
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: inline-svg-presentation-attrs 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><svg viewBox="0 0 40 20"><rect x="0" y="0" width="40" height="20" fill="none" stroke-dasharray="2 2" style="opacity: 0.5;"></rect><text x="20" y="12" font-size="9" text-anchor="middle" dominant-baseline="middle">42</text></svg></p></article></div></div>"`;
|
|
202
|
+
|
|
203
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: legacy-center-tag 1`] = `
|
|
204
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><center>centered</center>
|
|
205
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><font color="red" size="3">colored</font> and <big>big</big>.</p></article></div></div>"
|
|
206
|
+
`;
|
|
207
|
+
|
|
208
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: legacy-strike-tag 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">A <strike>struck</strike> phrase and <tt>teletype</tt>.</p></article></div></div>"`;
|
|
209
|
+
|
|
210
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: links 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="https://example.com/page" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 " target="_blank" rel="noopener noreferrer">external</a> and <a href="#setup" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">anchor</a> and plain text.</p></article></div></div>"`;
|
|
211
|
+
|
|
212
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: list-continuation-textarea-stays-live-bullet 1`] = `
|
|
213
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
214
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
215
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">item</p>
|
|
216
|
+
<textarea>x</textarea>
|
|
217
|
+
</li>
|
|
218
|
+
</ul></article></div></div>"
|
|
219
|
+
`;
|
|
220
|
+
|
|
221
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: list-continuation-textarea-stays-live-ordered 1`] = `
|
|
222
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
223
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
224
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Here is a form:</p>
|
|
225
|
+
<textarea></textarea>
|
|
226
|
+
</li>
|
|
227
|
+
</ol></article></div></div>"
|
|
228
|
+
`;
|
|
229
|
+
|
|
230
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: list-marker-inside-fence-does-not-shift-indent-columns 1`] = `
|
|
231
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">A <textarea></p>
|
|
232
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">css</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-css hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">- <span class="hljs-attribute">x</span>
|
|
233
|
+
</code></pre></div></div></pre>
|
|
234
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
235
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
236
|
+
`;
|
|
237
|
+
|
|
238
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: list-marker-inside-fence-html-block-combo 1`] = `
|
|
239
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div>
|
|
240
|
+
<textarea>
|
|
241
|
+
</div>
|
|
242
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">css</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-css hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">- <span class="hljs-attribute">x</span>
|
|
243
|
+
</code></pre></div></div></pre>
|
|
244
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
245
|
+
</code></pre></div></div></pre>
|
|
246
|
+
<h1 id="heading-after" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">Heading after</h1>
|
|
247
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Body after.</p></article></div></div>"
|
|
248
|
+
`;
|
|
249
|
+
|
|
250
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: loose-ordered-list 1`] = `
|
|
251
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
252
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
253
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">first paragraph item</p>
|
|
254
|
+
</li>
|
|
255
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
256
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">second paragraph item</p>
|
|
257
|
+
</li>
|
|
258
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
259
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">third paragraph item</p>
|
|
260
|
+
</li>
|
|
261
|
+
</ol></article></div></div>"
|
|
262
|
+
`;
|
|
263
|
+
|
|
264
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
265
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container rounded-lg p-4 md:p-6 lg:p-8 my-6 overflow-x-auto bg-ods-card border border-ods-border"><style>
|
|
266
|
+
.mermaid-svg-container svg {
|
|
267
|
+
max-width: 100% !important;
|
|
268
|
+
height: auto !important;
|
|
269
|
+
min-height: 200px;
|
|
270
|
+
font-family: 'DM Sans', sans-serif !important;
|
|
271
|
+
font-size: 14px !important;
|
|
272
|
+
}
|
|
273
|
+
@media (min-width: 1520px) {
|
|
274
|
+
.mermaid-svg-container svg {
|
|
275
|
+
max-width: 900px !important;
|
|
276
|
+
max-height: 700px !important;
|
|
277
|
+
min-height: 300px;
|
|
278
|
+
font-size: 16px !important;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
@media (min-width: 768px) and (max-width: 1519px) {
|
|
282
|
+
.mermaid-svg-container svg {
|
|
283
|
+
max-width: 700px !important;
|
|
284
|
+
max-height: 600px !important;
|
|
285
|
+
min-height: 250px;
|
|
286
|
+
font-size: 15px !important;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
@media (max-width: 767px) {
|
|
290
|
+
.mermaid-svg-container svg {
|
|
291
|
+
max-width: 90vw !important;
|
|
292
|
+
max-height: 400px !important;
|
|
293
|
+
min-height: 200px;
|
|
294
|
+
font-size: 13px !important;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
.mermaid-svg-container svg[width] { width: 100% !important; }
|
|
298
|
+
.mermaid-svg-container .node rect,
|
|
299
|
+
.mermaid-svg-container .node circle,
|
|
300
|
+
.mermaid-svg-container .node ellipse,
|
|
301
|
+
.mermaid-svg-container .node polygon { stroke-width: 2px !important; }
|
|
302
|
+
.mermaid-svg-container .edgePath path { stroke-width: 2px !important; }
|
|
303
|
+
@media (min-width: 768px) {
|
|
304
|
+
.mermaid-svg-container .node text,
|
|
305
|
+
.mermaid-svg-container .edgeLabel text { font-size: 14px !important; }
|
|
306
|
+
}
|
|
307
|
+
@media (min-width: 1520px) {
|
|
308
|
+
.mermaid-svg-container .node text,
|
|
309
|
+
.mermaid-svg-container .edgeLabel text { font-size: 16px !important; }
|
|
310
|
+
}
|
|
311
|
+
</style><div class="flex justify-center items-center w-full min-h-[200px] md:min-h-[250px] lg:min-h-[300px]"><div class="mermaid-svg-container w-full flex justify-center max-w-full" style="font-size: 14px;"><svg data-mock-mermaid="true" width="100%" height="auto"></svg></div></div></div></pre></article></div></div>"
|
|
312
|
+
`;
|
|
313
|
+
|
|
314
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: mismatched-fence-carve-does-not-shelter-opener 1`] = `
|
|
315
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">go</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-go hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-string">\`\`</span><span class="hljs-string">\`js
|
|
316
|
+
~~~
|
|
317
|
+
</span></code></pre></div></div></pre>
|
|
318
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea><br>
|
|
319
|
+
hello</p>
|
|
320
|
+
<pre><code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border">after
|
|
321
|
+
</code></pre></article></div></div>"
|
|
322
|
+
`;
|
|
323
|
+
|
|
324
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: nested-lists 1`] = `
|
|
325
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
326
|
+
<li class="pl-2 text-[16px] md:text-[18px]">first
|
|
327
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
328
|
+
<li class="pl-2 text-[16px] md:text-[18px]">nested a</li>
|
|
329
|
+
<li class="pl-2 text-[16px] md:text-[18px]">nested b</li>
|
|
330
|
+
</ul>
|
|
331
|
+
</li>
|
|
332
|
+
<li class="pl-2 text-[16px] md:text-[18px]">second
|
|
333
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
334
|
+
<li class="pl-2 text-[16px] md:text-[18px]">sub one</li>
|
|
335
|
+
<li class="pl-2 text-[16px] md:text-[18px]">sub two</li>
|
|
336
|
+
</ol>
|
|
337
|
+
</li>
|
|
338
|
+
</ol></article></div></div>"
|
|
339
|
+
`;
|
|
340
|
+
|
|
341
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: raw-html-safe 1`] = `
|
|
342
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><details><summary>More</summary>
|
|
343
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">hidden body</p>
|
|
344
|
+
</details>
|
|
345
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Line<br>break and <kbd>Ctrl</kbd>+<mark>C</mark>.</p></article></div></div>"
|
|
346
|
+
`;
|
|
347
|
+
|
|
348
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: raw-html-unknown-tag 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Share <their> settings and the <ticket> element.</p></article></div></div>"`;
|
|
349
|
+
|
|
350
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: raw-video-tag 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><div class="overflow-hidden w-full my-8 rounded-lg"><div class="w-full aspect-video"><div data-mock="video" data-kind="file" data-url="https://stream.example.com/v.mp4" data-poster="https://example.com/p.jpg"></div></div></div></p></article></div></div>"`;
|
|
351
|
+
|
|
352
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-after-info-string-closer-does-not-unescape 1`] = `
|
|
353
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Explaining <textarea> in prose.</p>
|
|
354
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
355
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">js</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-js hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">x
|
|
356
|
+
<span class="hljs-string">\`\`</span><span class="hljs-string">\`html
|
|
357
|
+
</textarea>
|
|
358
|
+
</span></code></pre></div></div></pre>
|
|
359
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">tail</p></article></div></div>"
|
|
360
|
+
`;
|
|
361
|
+
|
|
362
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-attribute-does-not-unescape 1`] = `
|
|
363
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea></p>
|
|
364
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">Heading</h1>
|
|
365
|
+
<div title="</textarea>">x</div></article></div></div>"
|
|
366
|
+
`;
|
|
367
|
+
|
|
368
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-blockquoted-fence-does-not-unescape 1`] = `
|
|
369
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element is a form control whose closing tag matters.</p>
|
|
370
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
371
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-symbol">&lt;</span>textarea name="bio"<span class="hljs-symbol">&gt;</span>hello<span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
372
|
+
</code></pre></div></div></pre>
|
|
373
|
+
</div></blockquote>
|
|
374
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2></article></div></div>"
|
|
375
|
+
`;
|
|
376
|
+
|
|
377
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-collapsed-reference-label-does-not-unescape 1`] = `
|
|
378
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
379
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 "></a></p>
|
|
380
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
381
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
382
|
+
`;
|
|
383
|
+
|
|
384
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-continuation-line-fence-does-not-unescape 1`] = `
|
|
385
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
386
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
387
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
388
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">item</p>
|
|
389
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
390
|
+
</code></pre></div></div></pre>
|
|
391
|
+
</li>
|
|
392
|
+
</ul>
|
|
393
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
394
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
395
|
+
`;
|
|
396
|
+
|
|
397
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-apostrophe-definition-title-does-not-unescape 1`] = `
|
|
398
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
399
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
400
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
401
|
+
`;
|
|
402
|
+
|
|
403
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-bracket-definition-destination-does-not-unescape 1`] = `
|
|
404
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
405
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
406
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
407
|
+
`;
|
|
408
|
+
|
|
409
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-bracket-definition-label-does-not-unescape 1`] = `
|
|
410
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
411
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
412
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
413
|
+
`;
|
|
414
|
+
|
|
415
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-paren-definition-title-does-not-unescape 1`] = `
|
|
416
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
417
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
418
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
419
|
+
`;
|
|
420
|
+
|
|
421
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-quote-definition-title-does-not-unescape 1`] = `
|
|
422
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
423
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
424
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
425
|
+
`;
|
|
426
|
+
|
|
427
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-fence-does-not-unescape 1`] = `
|
|
428
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea></p>
|
|
429
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">Heading</h1>
|
|
430
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">para2</p>
|
|
431
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
432
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
433
|
+
`;
|
|
434
|
+
|
|
435
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-footnote-label-does-not-unescape 1`] = `
|
|
436
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
437
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">See<sup><a href="#user-content-fn-%3C/textarea%3E" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">1</a></sup></p>
|
|
438
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
439
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p>
|
|
440
|
+
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">Footnotes</h2>
|
|
441
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
442
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
443
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">note <a href="#user-content-fnref-%3C/textarea%3E" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 data-footnote-backref">↩</a></p>
|
|
444
|
+
</li>
|
|
445
|
+
</ol>
|
|
446
|
+
</section></article></div></div>"
|
|
447
|
+
`;
|
|
448
|
+
|
|
449
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-html-comment-does-not-unescape 1`] = `
|
|
450
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Explaining <textarea> in prose.</p>
|
|
451
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
452
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">tail</p></article></div></div>"
|
|
453
|
+
`;
|
|
454
|
+
|
|
455
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-indented-code-does-not-unescape 1`] = `
|
|
456
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Explaining <textarea> in prose.</p>
|
|
457
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
458
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
459
|
+
</code></pre></div></div></pre>
|
|
460
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">tail</p></article></div></div>"
|
|
461
|
+
`;
|
|
462
|
+
|
|
463
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-code-does-not-unescape 1`] = `
|
|
464
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea></p>
|
|
465
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">Heading</h1>
|
|
466
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">para2 with <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"></textarea></code> inline</p></article></div></div>"
|
|
467
|
+
`;
|
|
468
|
+
|
|
469
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-image-alt-does-not-unescape 1`] = `
|
|
470
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
471
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><img data-mock="markdown-image" alt="</textarea>" src="/x"></p>
|
|
472
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
473
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
474
|
+
`;
|
|
475
|
+
|
|
476
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-image-title-does-not-unescape 1`] = `
|
|
477
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
478
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><img data-mock="markdown-image" alt="a" src="/x"></p>
|
|
479
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
480
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
481
|
+
`;
|
|
482
|
+
|
|
483
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-angle-destination-does-not-unescape 1`] = `
|
|
484
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
485
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/textarea" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
486
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
487
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
488
|
+
`;
|
|
489
|
+
|
|
490
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-paren-title-does-not-unescape 1`] = `
|
|
491
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
492
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
493
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
494
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
495
|
+
`;
|
|
496
|
+
|
|
497
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-single-quoted-title-does-not-unescape 1`] = `
|
|
498
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
499
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
500
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
501
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
502
|
+
`;
|
|
503
|
+
|
|
504
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-title-does-not-unescape 1`] = `
|
|
505
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
506
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
507
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
508
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
509
|
+
`;
|
|
510
|
+
|
|
511
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-link-definition-destination-does-not-unescape 1`] = `
|
|
512
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
513
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
514
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
515
|
+
`;
|
|
516
|
+
|
|
517
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-link-definition-title-does-not-unescape 1`] = `
|
|
518
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
519
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
520
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
521
|
+
`;
|
|
522
|
+
|
|
523
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-list-indented-fence-does-not-unescape 1`] = `
|
|
524
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Explaining <textarea> in prose.</p>
|
|
525
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
526
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
527
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
528
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">item</p>
|
|
529
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">go</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-go hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-string">\`\`</span><span class="hljs-string">\`html
|
|
530
|
+
</textarea>
|
|
531
|
+
\`</span><span class="hljs-string">\`\`</span>
|
|
532
|
+
</code></pre></div></div></pre>
|
|
533
|
+
</li>
|
|
534
|
+
</ul>
|
|
535
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">tail</p></article></div></div>"
|
|
536
|
+
`;
|
|
537
|
+
|
|
538
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-listed-image-alt-does-not-unescape 1`] = `
|
|
539
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
540
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
541
|
+
<li class="pl-2 text-[16px] md:text-[18px]"><img data-mock="markdown-image" alt="</textarea>" src="/x"></li>
|
|
542
|
+
</ul>
|
|
543
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
544
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
545
|
+
`;
|
|
546
|
+
|
|
547
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-listed-inline-link-title-does-not-unescape 1`] = `
|
|
548
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
549
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
550
|
+
<li class="pl-2 text-[16px] md:text-[18px]"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></li>
|
|
551
|
+
</ul>
|
|
552
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
553
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
554
|
+
`;
|
|
555
|
+
|
|
556
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-marker-line-fence-does-not-unescape 1`] = `
|
|
557
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
558
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
559
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
560
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
561
|
+
</code></pre></div></div></pre>
|
|
562
|
+
</li>
|
|
563
|
+
</ul>
|
|
564
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
565
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
566
|
+
`;
|
|
567
|
+
|
|
568
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-marker-line-ordered-fence-does-not-unescape 1`] = `
|
|
569
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
570
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
571
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
572
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
573
|
+
</code></pre></div></div></pre>
|
|
574
|
+
</li>
|
|
575
|
+
</ol>
|
|
576
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
577
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
578
|
+
`;
|
|
579
|
+
|
|
580
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-marker-line-tab-fence-does-not-unescape 1`] = `
|
|
581
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
582
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
583
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
584
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
585
|
+
</code></pre></div></div></pre>
|
|
586
|
+
</li>
|
|
587
|
+
</ul>
|
|
588
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
589
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
590
|
+
`;
|
|
591
|
+
|
|
592
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-mid-paragraph-inline-link-title-does-not-unescape 1`] = `
|
|
593
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
594
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">See <a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a> for more.</p>
|
|
595
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
596
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
597
|
+
`;
|
|
598
|
+
|
|
599
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-code-span-does-not-unescape 1`] = `
|
|
600
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
601
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Use <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border">foo </textarea></code> today.</p>
|
|
602
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
603
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
604
|
+
`;
|
|
605
|
+
|
|
606
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-definition-label-does-not-unescape 1`] = `
|
|
607
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
608
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
609
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
610
|
+
`;
|
|
611
|
+
|
|
612
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-definition-label-first-line-does-not-unescape 1`] = `
|
|
613
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
614
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
615
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
616
|
+
`;
|
|
617
|
+
|
|
618
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-definition-title-does-not-unescape 1`] = `
|
|
619
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
620
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
621
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
622
|
+
`;
|
|
623
|
+
|
|
624
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-link-definition-destination-does-not-unescape 1`] = `
|
|
625
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
626
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
627
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
628
|
+
`;
|
|
629
|
+
|
|
630
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-link-definition-does-not-unescape 1`] = `
|
|
631
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
632
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
633
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
634
|
+
`;
|
|
635
|
+
|
|
636
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-narrow-marker-line-fence-does-not-unescape 1`] = `
|
|
637
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
638
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
639
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
640
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
641
|
+
</code></pre></div></div></pre>
|
|
642
|
+
</li>
|
|
643
|
+
</ul></article></div></div>"
|
|
644
|
+
`;
|
|
645
|
+
|
|
646
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-narrow-ordered-marker-line-fence-does-not-unescape 1`] = `
|
|
647
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
648
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
649
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
650
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
651
|
+
</code></pre></div></div></pre>
|
|
652
|
+
</li>
|
|
653
|
+
</ol></article></div></div>"
|
|
654
|
+
`;
|
|
655
|
+
|
|
656
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-nested-marker-line-fence-does-not-unescape 1`] = `
|
|
657
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
658
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
659
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
660
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
661
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
662
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
663
|
+
</code></pre></div></div></pre>
|
|
664
|
+
</li>
|
|
665
|
+
</ul>
|
|
666
|
+
</li>
|
|
667
|
+
</ul></article></div></div>"
|
|
668
|
+
`;
|
|
669
|
+
|
|
670
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-nested-marker-line-link-definition-does-not-unescape 1`] = `
|
|
671
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
672
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
673
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
674
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
675
|
+
<li class="pl-2 text-[16px] md:text-[18px]"></li>
|
|
676
|
+
</ul>
|
|
677
|
+
</li>
|
|
678
|
+
</ul></article></div></div>"
|
|
679
|
+
`;
|
|
680
|
+
|
|
681
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-image-alt-does-not-unescape 1`] = `
|
|
682
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
683
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
684
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><img data-mock="markdown-image" alt="</textarea>" src="/x"></p>
|
|
685
|
+
</div></blockquote>
|
|
686
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
687
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
688
|
+
`;
|
|
689
|
+
|
|
690
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-inline-link-title-does-not-unescape 1`] = `
|
|
691
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
692
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
693
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
694
|
+
</div></blockquote>
|
|
695
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
696
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
697
|
+
`;
|
|
698
|
+
|
|
699
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-list-indented-fence-does-not-unescape 1`] = `
|
|
700
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
701
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
702
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
703
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
704
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Example:</p>
|
|
705
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
706
|
+
</code></pre></div></div></pre>
|
|
707
|
+
</li>
|
|
708
|
+
</ol>
|
|
709
|
+
</div></blockquote>
|
|
710
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
711
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
712
|
+
`;
|
|
713
|
+
|
|
714
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-marker-line-fence-does-not-unescape 1`] = `
|
|
715
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
716
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
717
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
718
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
719
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
720
|
+
</code></pre></div></div></pre>
|
|
721
|
+
</li>
|
|
722
|
+
</ul>
|
|
723
|
+
</div></blockquote>
|
|
724
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
725
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
726
|
+
`;
|
|
727
|
+
|
|
728
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-multiline-definition-label-does-not-unescape 1`] = `
|
|
729
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
730
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
731
|
+
</div></blockquote>
|
|
732
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
733
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
734
|
+
`;
|
|
735
|
+
|
|
736
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-reference-image-alt-does-not-unescape 1`] = `
|
|
737
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
738
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><img data-mock="markdown-image" alt="</textarea>" src="/x"></p>
|
|
739
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
740
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
741
|
+
`;
|
|
742
|
+
|
|
743
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-reference-label-does-not-unescape 1`] = `
|
|
744
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
745
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
746
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
747
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
748
|
+
`;
|
|
749
|
+
|
|
750
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-tab-indented-code-does-not-unescape 1`] = `
|
|
751
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Explaining <textarea> in prose.</p>
|
|
752
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
753
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
754
|
+
</code></pre></div></div></pre>
|
|
755
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">tail</p></article></div></div>"
|
|
756
|
+
`;
|
|
757
|
+
|
|
758
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-three-line-definition-label-does-not-unescape 1`] = `
|
|
759
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <textarea> element explained.</p>
|
|
760
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
761
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
762
|
+
`;
|
|
763
|
+
|
|
764
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-unclosed-fence-does-not-unescape 1`] = `
|
|
765
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Explaining <textarea> in HTML.</p>
|
|
766
|
+
<h2 id="heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">Heading</h2>
|
|
767
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
768
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
769
|
+
`;
|
|
770
|
+
|
|
771
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-inline-image-alt-does-not-unescape 1`] = `
|
|
772
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <iframe> element explained.</p>
|
|
773
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><img data-mock="markdown-image" alt="</iframe>" src="/x"></p>
|
|
774
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
775
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
776
|
+
`;
|
|
777
|
+
|
|
778
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-inline-link-title-does-not-unescape 1`] = `
|
|
779
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <iframe> element explained.</p>
|
|
780
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
781
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
782
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
783
|
+
`;
|
|
784
|
+
|
|
785
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-marker-line-fence-does-not-unescape 1`] = `
|
|
786
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <iframe> element explained.</p>
|
|
787
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
788
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
789
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">iframe</span>></span>
|
|
790
|
+
</code></pre></div></div></pre>
|
|
791
|
+
</li>
|
|
792
|
+
</ul>
|
|
793
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
794
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
795
|
+
`;
|
|
796
|
+
|
|
797
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-multiline-code-span-does-not-unescape 1`] = `
|
|
798
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <iframe> element explained.</p>
|
|
799
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Use \`foo</p>
|
|
800
|
+
\` today.
|
|
801
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
802
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
803
|
+
`;
|
|
804
|
+
|
|
805
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-multiline-definition-label-does-not-unescape 1`] = `
|
|
806
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <iframe> element explained.</p>
|
|
807
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">[foo</p>
|
|
808
|
+
]: /x
|
|
809
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
810
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
811
|
+
`;
|
|
812
|
+
|
|
813
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-narrow-marker-line-fence-does-not-unescape 1`] = `
|
|
814
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">The <iframe> element explained.</p>
|
|
815
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
816
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
817
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">iframe</span>></span>
|
|
818
|
+
</code></pre></div></div></pre>
|
|
819
|
+
</li>
|
|
820
|
+
</ul></article></div></div>"
|
|
821
|
+
`;
|
|
822
|
+
|
|
823
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-in-inline-code-in-blockquoted-html-block-not-sheltered 1`] = `
|
|
824
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
825
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
826
|
+
<div>
|
|
827
|
+
\`<iframe>\`
|
|
828
|
+
</div>
|
|
829
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
830
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p>
|
|
831
|
+
</div></blockquote></article></div></div>"
|
|
832
|
+
`;
|
|
833
|
+
|
|
834
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-in-inline-code-in-tab-list-item-html-block-not-sheltered 1`] = `
|
|
835
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
836
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
837
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
838
|
+
<li class="pl-2 text-[16px] md:text-[18px]">intro
|
|
839
|
+
<div>
|
|
840
|
+
\`<iframe>\`
|
|
841
|
+
more
|
|
842
|
+
</div></li>
|
|
843
|
+
</ul>
|
|
844
|
+
</li>
|
|
845
|
+
</ul>
|
|
846
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
847
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
848
|
+
`;
|
|
849
|
+
|
|
850
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-iframe-in-nbsp-filler-html-block-not-sheltered 1`] = `
|
|
851
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div>
|
|
852
|
+
|
|
853
|
+
\`<iframe>\`
|
|
854
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">rest of the answer</p></div></article></div></div>"
|
|
855
|
+
`;
|
|
856
|
+
|
|
857
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-mask-survives-turkish-dotted-i 1`] = `
|
|
858
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">İİİİİİİİİİİİİİİİİİİİİİİİİ <textarea>a</textarea></p>
|
|
859
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea></p>
|
|
860
|
+
<h2 id="later-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">Later heading</h2>
|
|
861
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
862
|
+
<li class="pl-2 text-[16px] md:text-[18px]">item one</li>
|
|
863
|
+
</ul></article></div></div>"
|
|
864
|
+
`;
|
|
865
|
+
|
|
866
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-after-foreign-filler-in-blockquoted-html-block-not-sheltered 1`] = `
|
|
867
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
868
|
+
<div>
|
|
869
|
+
-
|
|
870
|
+
\`<textarea>\`
|
|
871
|
+
</div></div></blockquote>
|
|
872
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
873
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
874
|
+
`;
|
|
875
|
+
|
|
876
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-after-foreign-filler-in-list-item-html-block-not-sheltered 1`] = `
|
|
877
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
878
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
879
|
+
<div>
|
|
880
|
+
>
|
|
881
|
+
\`<textarea>\`
|
|
882
|
+
</div></li>
|
|
883
|
+
</ul>
|
|
884
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
885
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
886
|
+
`;
|
|
887
|
+
|
|
888
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-html-block-details-not-sheltered 1`] = `
|
|
889
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
890
|
+
<details>
|
|
891
|
+
\`\`\`
|
|
892
|
+
<textarea>
|
|
893
|
+
\`\`\`
|
|
894
|
+
</details>
|
|
895
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
896
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
897
|
+
`;
|
|
898
|
+
|
|
899
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-html-block-div-not-sheltered 1`] = `
|
|
900
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
901
|
+
<div>
|
|
902
|
+
\`\`\`
|
|
903
|
+
<textarea>
|
|
904
|
+
\`\`\`
|
|
905
|
+
</div>
|
|
906
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
907
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
908
|
+
`;
|
|
909
|
+
|
|
910
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-html-block-pre-not-sheltered 1`] = `
|
|
911
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
912
|
+
<pre>\`\`\`
|
|
913
|
+
<textarea>
|
|
914
|
+
\`\`\`
|
|
915
|
+
</pre>
|
|
916
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
917
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
918
|
+
`;
|
|
919
|
+
|
|
920
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-blockquoted-html-block-not-sheltered 1`] = `
|
|
921
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
922
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
923
|
+
<div>
|
|
924
|
+
\`<textarea>\`
|
|
925
|
+
</div>
|
|
926
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
927
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p>
|
|
928
|
+
</div></blockquote></article></div></div>"
|
|
929
|
+
`;
|
|
930
|
+
|
|
931
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-deep-tab-list-item-html-block-not-sheltered 1`] = `
|
|
932
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
933
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
934
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
935
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
936
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
937
|
+
<li class="pl-2 text-[16px] md:text-[18px]">intro
|
|
938
|
+
<div>
|
|
939
|
+
\`<textarea>\`
|
|
940
|
+
more
|
|
941
|
+
</div></li>
|
|
942
|
+
</ul>
|
|
943
|
+
</li>
|
|
944
|
+
</ul>
|
|
945
|
+
</li>
|
|
946
|
+
</ul>
|
|
947
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
948
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
949
|
+
`;
|
|
950
|
+
|
|
951
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-details-not-sheltered 1`] = `
|
|
952
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
953
|
+
<details>
|
|
954
|
+
\`<textarea>\`
|
|
955
|
+
</details>
|
|
956
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
957
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
958
|
+
`;
|
|
959
|
+
|
|
960
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-div-not-sheltered 1`] = `
|
|
961
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
962
|
+
<div>
|
|
963
|
+
\`<textarea>\`
|
|
964
|
+
</div>
|
|
965
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
966
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
967
|
+
`;
|
|
968
|
+
|
|
969
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-pre-not-sheltered 1`] = `
|
|
970
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
971
|
+
<pre>\`<textarea>\`
|
|
972
|
+
</pre>
|
|
973
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
974
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
975
|
+
`;
|
|
976
|
+
|
|
977
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-span-not-sheltered 1`] = `
|
|
978
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
979
|
+
<span>
|
|
980
|
+
\`<textarea>\`
|
|
981
|
+
</span>
|
|
982
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
983
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
984
|
+
`;
|
|
985
|
+
|
|
986
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-list-item-html-block-not-sheltered 1`] = `
|
|
987
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
988
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
989
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
990
|
+
<div>
|
|
991
|
+
\`<textarea>\`
|
|
992
|
+
</div>
|
|
993
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
994
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p>
|
|
995
|
+
</li>
|
|
996
|
+
</ul></article></div></div>"
|
|
997
|
+
`;
|
|
998
|
+
|
|
999
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-nested-blockquoted-html-block-not-sheltered 1`] = `
|
|
1000
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
1001
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-[1.125em]">
|
|
1002
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
1003
|
+
<details>
|
|
1004
|
+
\`<textarea>\`
|
|
1005
|
+
</details>
|
|
1006
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1007
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p>
|
|
1008
|
+
</div></blockquote>
|
|
1009
|
+
</div></blockquote></article></div></div>"
|
|
1010
|
+
`;
|
|
1011
|
+
|
|
1012
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-ordered-item-html-block-not-sheltered 1`] = `
|
|
1013
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1014
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
1015
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
1016
|
+
<div>
|
|
1017
|
+
\`<textarea>\`
|
|
1018
|
+
</div>
|
|
1019
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1020
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p>
|
|
1021
|
+
</li>
|
|
1022
|
+
</ol></article></div></div>"
|
|
1023
|
+
`;
|
|
1024
|
+
|
|
1025
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-tab-list-item-html-block-not-sheltered 1`] = `
|
|
1026
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1027
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
1028
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1029
|
+
<li class="pl-2 text-[16px] md:text-[18px]">intro
|
|
1030
|
+
<div>
|
|
1031
|
+
\`<textarea>\`
|
|
1032
|
+
more
|
|
1033
|
+
</div></li>
|
|
1034
|
+
</ul>
|
|
1035
|
+
</li>
|
|
1036
|
+
</ul>
|
|
1037
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1038
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
1039
|
+
`;
|
|
1040
|
+
|
|
1041
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-nbsp-filler-html-block-not-sheltered 1`] = `
|
|
1042
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div>
|
|
1043
|
+
|
|
1044
|
+
\`<textarea>\`
|
|
1045
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">rest of the answer</p>
|
|
1046
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1047
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></div></article></div></div>"
|
|
1048
|
+
`;
|
|
1049
|
+
|
|
1050
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-iframe-escaped 1`] = `
|
|
1051
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1052
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><iframe/></p>
|
|
1053
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1054
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1055
|
+
<li class="pl-2 text-[16px] md:text-[18px]">item</li>
|
|
1056
|
+
</ul></article></div></div>"
|
|
1057
|
+
`;
|
|
1058
|
+
|
|
1059
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-opener-in-html-block-div-not-sheltered 1`] = `
|
|
1060
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
1061
|
+
<div>
|
|
1062
|
+
\`\`\`
|
|
1063
|
+
<textarea/>
|
|
1064
|
+
\`\`\`
|
|
1065
|
+
</div>
|
|
1066
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1067
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">secret tail</p></article></div></div>"
|
|
1068
|
+
`;
|
|
1069
|
+
|
|
1070
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-spaced-textarea-escaped 1`] = `
|
|
1071
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1072
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea /></p>
|
|
1073
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1074
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1075
|
+
<li class="pl-2 text-[16px] md:text-[18px]">item</li>
|
|
1076
|
+
</ul></article></div></div>"
|
|
1077
|
+
`;
|
|
1078
|
+
|
|
1079
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-textarea-escaped 1`] = `
|
|
1080
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1081
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea/></p>
|
|
1082
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1083
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1084
|
+
<li class="pl-2 text-[16px] md:text-[18px]">item</li>
|
|
1085
|
+
</ul></article></div></div>"
|
|
1086
|
+
`;
|
|
1087
|
+
|
|
1088
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-textarea-inline-escaped 1`] = `
|
|
1089
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello <textarea/> world</p>
|
|
1090
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2></article></div></div>"
|
|
1091
|
+
`;
|
|
1092
|
+
|
|
1093
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-title-escaped 1`] = `
|
|
1094
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1095
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><title/></p>
|
|
1096
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1097
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1098
|
+
<li class="pl-2 text-[16px] md:text-[18px]">item</li>
|
|
1099
|
+
</ul></article></div></div>"
|
|
1100
|
+
`;
|
|
1101
|
+
|
|
1102
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-slash-not-immediately-before-gt-is-inert 1`] = `
|
|
1103
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1104
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea/ ></p>
|
|
1105
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea/foo></p>
|
|
1106
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea//></p>
|
|
1107
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1108
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1109
|
+
<li class="pl-2 text-[16px] md:text-[18px]">item</li>
|
|
1110
|
+
</ul></article></div></div>"
|
|
1111
|
+
`;
|
|
1112
|
+
|
|
1113
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: rawtext-title-closer-in-fence-does-not-unescape 1`] = `
|
|
1114
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><title></p>
|
|
1115
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">Heading</h1>
|
|
1116
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">title</span>></span>
|
|
1117
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1118
|
+
`;
|
|
1119
|
+
|
|
1120
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: reference-style-link 1`] = `
|
|
1121
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">See [the docs][ref] for details.</p>
|
|
1122
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">[ref]:</p>
|
|
1123
|
+
<div data-mock="og-preview" data-url="https://example.com/reference"></div></article></div></div>"
|
|
1124
|
+
`;
|
|
1125
|
+
|
|
1126
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-figma 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="figma" data-url="https://www.figma.com/design/abc/My-File"></div></article></div></div>"`;
|
|
1127
|
+
|
|
1128
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-link-preview 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="og-preview" data-url="https://example.com/article"></div></article></div></div>"`;
|
|
1129
|
+
|
|
1130
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-linkedin 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="linkedin" data-url="https://www.linkedin.com/posts/someone_activity-1"></div></article></div></div>"`;
|
|
1131
|
+
|
|
1132
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-reddit 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="reddit" data-url="https://reddit.com/r/msp/comments/1/post"></div></article></div></div>"`;
|
|
1133
|
+
|
|
1134
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-tweet 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="twitter" data-url="https://twitter.com/user/status/12345"></div></article></div></div>"`;
|
|
1135
|
+
|
|
1136
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-youtube 1`] = `
|
|
1137
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Intro</p>
|
|
1138
|
+
<div data-mock="video" data-kind="youtube" data-url="abc123XYZ_-" data-poster=""></div>
|
|
1139
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Outro</p></article></div></div>"
|
|
1140
|
+
`;
|
|
1141
|
+
|
|
1142
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-youtube-markdoc 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="video" data-kind="youtube" data-url="vid42" data-poster=""></div></article></div></div>"`;
|
|
1143
|
+
|
|
1144
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: shortcode-youtube-thumbnail-link 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div data-mock="video" data-kind="youtube" data-url="awc-yAnkhIo" data-poster=""></div></article></div></div>"`;
|
|
1145
|
+
|
|
1146
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: svg-title-a11y-label 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><svg viewBox="0 0 24 24"><title>Coverage chart</title><desc>Four quarters</desc><circle cx="12" cy="12" r="10"></circle></svg></p></article></div></div>"`;
|
|
1147
|
+
|
|
1148
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: task-list 1`] = `
|
|
1149
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1150
|
+
<li class="pl-2 text-[16px] md:text-[18px]"><input disabled="" type="checkbox" checked=""> done item</li>
|
|
1151
|
+
<li class="pl-2 text-[16px] md:text-[18px]"><input disabled="" type="checkbox"> open item</li>
|
|
1152
|
+
</ul></article></div></div>"
|
|
1153
|
+
`;
|
|
1154
|
+
|
|
1155
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: tilde-fence-protects-html-sample 1`] = `
|
|
1156
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
1157
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"><<span class="hljs-name">textarea</span>></span>sample<span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1158
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1159
|
+
`;
|
|
1160
|
+
|
|
1161
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: truncated-comment-in-fence-does-not-blank-to-eof 1`] = `
|
|
1162
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-comment"><!-- todo
|
|
1163
|
+
</span></code></pre></div></div></pre>
|
|
1164
|
+
<textarea>a</textarea></article></div></div>"
|
|
1165
|
+
`;
|
|
1166
|
+
|
|
1167
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: unclosed-fence-body-renders-escaped 1`] = `
|
|
1168
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">intro</p>
|
|
1169
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-symbol">&lt;</span>their<span class="hljs-symbol">&gt;</span>x<span class="hljs-symbol">&lt;</span>/their<span class="hljs-symbol">&gt;</span>
|
|
1170
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1171
|
+
`;
|
|
1172
|
+
|
|
1173
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: unclosed-iframe-does-not-swallow 1`] = `
|
|
1174
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1175
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><iframe></p>
|
|
1176
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1177
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">more</p></article></div></div>"
|
|
1178
|
+
`;
|
|
1179
|
+
|
|
1180
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: unclosed-textarea-does-not-swallow 1`] = `
|
|
1181
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1182
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><textarea></p>
|
|
1183
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1184
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">more</p></article></div></div>"
|
|
1185
|
+
`;
|
|
1186
|
+
|
|
1187
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: unclosed-title-does-not-swallow 1`] = `
|
|
1188
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Hello</p>
|
|
1189
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4"><title></p>
|
|
1190
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2>
|
|
1191
|
+
<p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">more</p></article></div></div>"
|
|
1192
|
+
`;
|
|
1193
|
+
|
|
1194
|
+
exports[`RichMarkdownRenderer golden parity > renders fixture: wide-list-marker-gap-clamps-content-column 1`] = `
|
|
1195
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="first:mt-0 last:mb-0 text-ods-text-primary font-sans text-[16px] md:text-[18px] lg:text-[20px] leading-[1.6] my-4">Explaining <textarea> in HTML.</p>
|
|
1196
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1197
|
+
<li class="pl-2 text-[16px] md:text-[18px]">
|
|
1198
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"> foo
|
|
1199
|
+
</textarea>
|
|
1200
|
+
</code></pre></div></div></pre>
|
|
1201
|
+
</li>
|
|
1202
|
+
</ul>
|
|
1203
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">After heading</h2></article></div></div>"
|
|
1204
|
+
`;
|
|
1205
|
+
|
|
1206
|
+
exports[`RichMarkdownRenderer golden parity > renders headings with backend sectionIds + demoteMarkdownH1ToH2 1`] = `
|
|
1207
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h2 id="getting-started" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-ods-text-primary text-[32px] md:text-[40px] lg:text-[48px] leading-[1.25]">🚀 Getting Started</h2>
|
|
1208
|
+
<h2 id="setup" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">Setup</h2>
|
|
1209
|
+
<h2 id="setup-2" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b text-ods-text-primary border-ods-border text-[28px] md:text-[32px]">Setup</h2>
|
|
1210
|
+
<h3 id="deep-dive" class="font-sans font-semibold mt-6 mb-3 text-ods-text-primary text-[24px] md:text-[28px]">Deep Dive 🔧</h3>
|
|
1211
|
+
<h4 id="h4-level" class="font-sans font-semibold mt-4 mb-2 text-ods-text-primary text-[20px] md:text-[22px]">H4 level</h4>
|
|
1212
|
+
<h5 id="h5-level" class="font-sans font-semibold mt-3 mb-2 text-ods-text-primary text-[18px] md:text-[20px]">H5 level</h5>
|
|
1213
|
+
<h6 id="h6-level" class="font-sans font-semibold mt-3 mb-1 text-ods-text-primary text-[16px] md:text-[18px]">H6 level</h6></article></div></div>"
|
|
1214
|
+
`;
|
|
1215
|
+
|
|
1216
|
+
exports[`SimpleMarkdownRenderer golden parity > renders broken links with badge 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><span class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 cursor-pointer" role="link" tabindex="0">good</span> and <span class="text-ods-accent cursor-not-allowed">bad<sup class="ml-1 text-xs font-bold text-ods-error">[BROKEN]</sup></span></p></article></div></div>"`;
|
|
1217
|
+
|
|
1218
|
+
exports[`SimpleMarkdownRenderer golden parity > renders chat fixture with card/mention plugins: card-and-mention-mixed 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="mb-4 first:mt-0 last:mb-0 text-ods-text-primary text-base md:text-lg">See <a href="card://vendor:acme" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">[card://vendor:acme]</a> and <a href="mention://ticket:T-100" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">@ticket:T-100</a> together.</p></article></div></div>"`;
|
|
1219
|
+
|
|
1220
|
+
exports[`SimpleMarkdownRenderer golden parity > renders chat fixture with card/mention plugins: card-marker 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="mb-4 first:mt-0 last:mb-0 text-ods-text-primary text-base md:text-lg">Here is the record: <a href="card://blog:hello-world" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">[card://blog:hello-world]</a> inline.</p></article></div></div>"`;
|
|
1221
|
+
|
|
1222
|
+
exports[`SimpleMarkdownRenderer golden parity > renders chat fixture with card/mention plugins: mention-chip 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="mb-4 first:mt-0 last:mb-0 text-ods-text-primary text-base md:text-lg">Check <a href="mention://device:router-9" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">@device:router-9</a> status.</p></article></div></div>"`;
|
|
1223
|
+
|
|
1224
|
+
exports[`SimpleMarkdownRenderer golden parity > renders each text-size preset > textSize-compact 1`] = `
|
|
1225
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h1 id="h" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-2">H</h1>
|
|
1226
|
+
<p class="mb-4 first:mt-0 last:mb-0 text-ods-text-primary text-base md:text-lg">para</p>
|
|
1227
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1228
|
+
<li class="pl-2 text-base md:text-lg">li</li>
|
|
1229
|
+
</ul></article></div></div>"
|
|
1230
|
+
`;
|
|
1231
|
+
|
|
1232
|
+
exports[`SimpleMarkdownRenderer golden parity > renders each text-size preset > textSize-default 1`] = `
|
|
1233
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h1 id="h" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">H</h1>
|
|
1234
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">para</p>
|
|
1235
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1236
|
+
<li class="pl-2 text-base md:text-lg">li</li>
|
|
1237
|
+
</ul></article></div></div>"
|
|
1238
|
+
`;
|
|
1239
|
+
|
|
1240
|
+
exports[`SimpleMarkdownRenderer golden parity > renders each text-size preset > textSize-large 1`] = `
|
|
1241
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h1 id="h" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">H</h1>
|
|
1242
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary text-h3">para</p>
|
|
1243
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1244
|
+
<li class="pl-2 text-lg md:text-xl">li</li>
|
|
1245
|
+
</ul></article></div></div>"
|
|
1246
|
+
`;
|
|
1247
|
+
|
|
1248
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: authored-text-input 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><form><input><button>go</button></form></article></div></div>"`;
|
|
1249
|
+
|
|
1250
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: bare-title-tag-is-inert 1`] = `
|
|
1251
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h1 id="real-post" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">Real Post</h1>
|
|
1252
|
+
Buy cheap pills
|
|
1253
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">body</p></article></div></div>"
|
|
1254
|
+
`;
|
|
1255
|
+
|
|
1256
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: blockquote 1`] = `
|
|
1257
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1258
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">A quoted paragraph<br>
|
|
1259
|
+
spanning two lines.</p>
|
|
1260
|
+
</div></blockquote></article></div></div>"
|
|
1261
|
+
`;
|
|
1262
|
+
|
|
1263
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: blockquote-with-blank-line 1`] = `
|
|
1264
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1265
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">first quoted para</p>
|
|
1266
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">second quoted para</p>
|
|
1267
|
+
</div></blockquote></article></div></div>"
|
|
1268
|
+
`;
|
|
1269
|
+
|
|
1270
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: closed-iframe-still-renders 1`] = `
|
|
1271
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
1272
|
+
<iframe src="https://example.com/frame" width="300"></iframe>
|
|
1273
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1274
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">more</p></article></div></div>"
|
|
1275
|
+
`;
|
|
1276
|
+
|
|
1277
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: closed-textarea-still-renders 1`] = `
|
|
1278
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
1279
|
+
<textarea>edit me</textarea>
|
|
1280
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1281
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">more</p></article></div></div>"
|
|
1282
|
+
`;
|
|
1283
|
+
|
|
1284
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: comment-marker-in-inline-code-does-not-blank-to-eof 1`] = `
|
|
1285
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Use <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><!--</code> to start a comment.</p>
|
|
1286
|
+
<textarea>hi</textarea></article></div></div>"
|
|
1287
|
+
`;
|
|
1288
|
+
|
|
1289
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: empty-image 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"></p></article></div></div>"`;
|
|
1290
|
+
|
|
1291
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: fenced-code-js 1`] = `
|
|
1292
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">js</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-js hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-keyword">const</span> x = <span class="hljs-number">1</span>;
|
|
1293
|
+
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(x < <span class="hljs-number">2</span> && x > <span class="hljs-number">0</span>);
|
|
1294
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1295
|
+
`;
|
|
1296
|
+
|
|
1297
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: fenced-code-unknown-lang 1`] = `
|
|
1298
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">qwerty</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-qwerty hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">some text < with > angles
|
|
1299
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1300
|
+
`;
|
|
1301
|
+
|
|
1302
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: gfm-table 1`] = `
|
|
1303
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none">
|
|
1304
|
+
<div class="table-container my-6 overflow-x-auto"><div class="min-w-full border rounded-lg border-ods-border bg-ods-card"><table class="w-full table-fixed md:table-auto"><thead class="bg-ods-bg-surface"><tr><th class="px-2 md:px-4 py-3 text-left font-semibold text-ods-accent border-r last:border-r-0 break-words border-ods-border text-xs md:text-sm">Col A</th><th class="px-2 md:px-4 py-3 text-left font-semibold text-ods-accent border-r last:border-r-0 break-words border-ods-border text-xs md:text-sm">Col B</th></tr></thead><tbody><tr><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">a1</td><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">b1</td></tr><tr><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">a2</td><td class="px-2 md:px-4 py-3 border-r last:border-r-0 border-b break-words whitespace-normal text-ods-text-primary border-ods-border text-xs md:text-sm">b2</td></tr></tbody></table></div></div></article></div></div>"
|
|
1305
|
+
`;
|
|
1306
|
+
|
|
1307
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: headings-with-emoji-and-dupes 1`] = `
|
|
1308
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h1 id="getting-started" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">🚀 Getting Started</h1>
|
|
1309
|
+
<h2 id="setup" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">Setup</h2>
|
|
1310
|
+
<h2 id="setup-2" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">Setup</h2>
|
|
1311
|
+
<h3 id="deep-dive" class="font-sans font-semibold mt-6 mb-3 text-ods-text-primary text-2xl md:text-3xl">Deep Dive 🔧</h3>
|
|
1312
|
+
<h4 id="h4-level" class="font-sans font-semibold mt-4 mb-2 text-ods-text-primary text-xl">H4 level</h4>
|
|
1313
|
+
<h5 id="h5-level" class="font-sans font-semibold mt-3 mb-2 text-ods-text-primary text-lg md:text-xl">H5 level</h5>
|
|
1314
|
+
<h6 id="h6-level" class="font-sans font-semibold mt-3 mb-1 text-ods-text-primary text-base md:text-lg">H6 level</h6></article></div></div>"
|
|
1315
|
+
`;
|
|
1316
|
+
|
|
1317
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: hostile-iframe-srcdoc 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><iframe src="https://example.com/frame"></iframe></article></div></div>"`;
|
|
1318
|
+
|
|
1319
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: hostile-js-href 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">click</a></p></article></div></div>"`;
|
|
1320
|
+
|
|
1321
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: hostile-onerror 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><img alt="No image available" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="https://example.com/x.png"></article></div></div>"`;
|
|
1322
|
+
|
|
1323
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: hostile-script 1`] = `
|
|
1324
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">before</p>
|
|
1325
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><script>alert(1)</script></p>
|
|
1326
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">after</p></article></div></div>"
|
|
1327
|
+
`;
|
|
1328
|
+
|
|
1329
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: hostile-srcset 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><img alt="No image available" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="https://safe.example/a.png"></article></div></div>"`;
|
|
1330
|
+
|
|
1331
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: hostile-style-block 1`] = `
|
|
1332
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">text</p>
|
|
1333
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><style>body{display:none}</style></p>
|
|
1334
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">more</p></article></div></div>"
|
|
1335
|
+
`;
|
|
1336
|
+
|
|
1337
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: hr 1`] = `
|
|
1338
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">above</p>
|
|
1339
|
+
<hr class="border-0 border-t my-8 border-ods-border">
|
|
1340
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">below</p></article></div></div>"
|
|
1341
|
+
`;
|
|
1342
|
+
|
|
1343
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: images 1`] = `
|
|
1344
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><img alt="alt text" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="https://example.com/pic.png"></p>
|
|
1345
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><img alt="" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="https://example.com/no-alt.png"></p></article></div></div>"
|
|
1346
|
+
`;
|
|
1347
|
+
|
|
1348
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: indented-code-angle-bracket-not-escaped 1`] = `
|
|
1349
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Para</p>
|
|
1350
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">css</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-css hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">if <span class="hljs-selector-tag">a</span> <<span class="hljs-selector-tag">b</span> then
|
|
1351
|
+
done
|
|
1352
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1353
|
+
`;
|
|
1354
|
+
|
|
1355
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: inline-code 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Use <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><their></code> and <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border">npm install</code> inline.</p></article></div></div>"`;
|
|
1356
|
+
|
|
1357
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: inline-code-rawtext-textarea-not-escaped 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><textarea></code> element is a form control.</p></article></div></div>"`;
|
|
1358
|
+
|
|
1359
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: inline-code-rawtext-title-not-escaped 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Use the <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"><title></code> element for page titles.</p></article></div></div>"`;
|
|
1360
|
+
|
|
1361
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: inline-svg 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2"></circle><path d="M8 12l3 3 5-6"></path></svg></p></article></div></div>"`;
|
|
1362
|
+
|
|
1363
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: inline-svg-presentation-attrs 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><svg viewBox="0 0 40 20"><rect x="0" y="0" width="40" height="20" fill="none" stroke-dasharray="2 2" style="opacity: 0.5;"></rect><text x="20" y="12" font-size="9" text-anchor="middle" dominant-baseline="middle">42</text></svg></p></article></div></div>"`;
|
|
1364
|
+
|
|
1365
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: legacy-center-tag 1`] = `
|
|
1366
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><center>centered</center>
|
|
1367
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><font color="red" size="3">colored</font> and <big>big</big>.</p></article></div></div>"
|
|
1368
|
+
`;
|
|
1369
|
+
|
|
1370
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: legacy-strike-tag 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">A <strike>struck</strike> phrase and <tt>teletype</tt>.</p></article></div></div>"`;
|
|
1371
|
+
|
|
1372
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: links 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="https://example.com/page" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 " target="_blank" rel="noopener noreferrer">external</a> and <a href="#setup" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">anchor</a> and plain text.</p></article></div></div>"`;
|
|
1373
|
+
|
|
1374
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: list-continuation-textarea-stays-live-bullet 1`] = `
|
|
1375
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1376
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1377
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">item</p>
|
|
1378
|
+
<textarea>x</textarea>
|
|
1379
|
+
</li>
|
|
1380
|
+
</ul></article></div></div>"
|
|
1381
|
+
`;
|
|
1382
|
+
|
|
1383
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: list-continuation-textarea-stays-live-ordered 1`] = `
|
|
1384
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1385
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1386
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Here is a form:</p>
|
|
1387
|
+
<textarea></textarea>
|
|
1388
|
+
</li>
|
|
1389
|
+
</ol></article></div></div>"
|
|
1390
|
+
`;
|
|
1391
|
+
|
|
1392
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: list-marker-inside-fence-does-not-shift-indent-columns 1`] = `
|
|
1393
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">A <textarea></p>
|
|
1394
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">css</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-css hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">- <span class="hljs-attribute">x</span>
|
|
1395
|
+
</code></pre></div></div></pre>
|
|
1396
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
1397
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1398
|
+
`;
|
|
1399
|
+
|
|
1400
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: list-marker-inside-fence-html-block-combo 1`] = `
|
|
1401
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div>
|
|
1402
|
+
<textarea>
|
|
1403
|
+
</div>
|
|
1404
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">css</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-css hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">- <span class="hljs-attribute">x</span>
|
|
1405
|
+
</code></pre></div></div></pre>
|
|
1406
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
1407
|
+
</code></pre></div></div></pre>
|
|
1408
|
+
<h1 id="heading-after" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">Heading after</h1>
|
|
1409
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Body after.</p></article></div></div>"
|
|
1410
|
+
`;
|
|
1411
|
+
|
|
1412
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: loose-ordered-list 1`] = `
|
|
1413
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1414
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1415
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">first paragraph item</p>
|
|
1416
|
+
</li>
|
|
1417
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1418
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">second paragraph item</p>
|
|
1419
|
+
</li>
|
|
1420
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1421
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">third paragraph item</p>
|
|
1422
|
+
</li>
|
|
1423
|
+
</ol></article></div></div>"
|
|
1424
|
+
`;
|
|
1425
|
+
|
|
1426
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
1427
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container rounded-lg p-4 md:p-6 lg:p-8 my-6 overflow-x-auto bg-ods-card border border-ods-border"><style>
|
|
1428
|
+
.mermaid-svg-container svg {
|
|
1429
|
+
max-width: 100% !important;
|
|
1430
|
+
height: auto !important;
|
|
1431
|
+
min-height: 200px;
|
|
1432
|
+
font-family: 'DM Sans', sans-serif !important;
|
|
1433
|
+
font-size: 14px !important;
|
|
1434
|
+
}
|
|
1435
|
+
@media (min-width: 1520px) {
|
|
1436
|
+
.mermaid-svg-container svg {
|
|
1437
|
+
max-width: 900px !important;
|
|
1438
|
+
max-height: 700px !important;
|
|
1439
|
+
min-height: 300px;
|
|
1440
|
+
font-size: 16px !important;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
@media (min-width: 768px) and (max-width: 1519px) {
|
|
1444
|
+
.mermaid-svg-container svg {
|
|
1445
|
+
max-width: 700px !important;
|
|
1446
|
+
max-height: 600px !important;
|
|
1447
|
+
min-height: 250px;
|
|
1448
|
+
font-size: 15px !important;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
@media (max-width: 767px) {
|
|
1452
|
+
.mermaid-svg-container svg {
|
|
1453
|
+
max-width: 90vw !important;
|
|
1454
|
+
max-height: 400px !important;
|
|
1455
|
+
min-height: 200px;
|
|
1456
|
+
font-size: 13px !important;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
.mermaid-svg-container svg[width] { width: 100% !important; }
|
|
1460
|
+
.mermaid-svg-container .node rect,
|
|
1461
|
+
.mermaid-svg-container .node circle,
|
|
1462
|
+
.mermaid-svg-container .node ellipse,
|
|
1463
|
+
.mermaid-svg-container .node polygon { stroke-width: 2px !important; }
|
|
1464
|
+
.mermaid-svg-container .edgePath path { stroke-width: 2px !important; }
|
|
1465
|
+
@media (min-width: 768px) {
|
|
1466
|
+
.mermaid-svg-container .node text,
|
|
1467
|
+
.mermaid-svg-container .edgeLabel text { font-size: 14px !important; }
|
|
1468
|
+
}
|
|
1469
|
+
@media (min-width: 1520px) {
|
|
1470
|
+
.mermaid-svg-container .node text,
|
|
1471
|
+
.mermaid-svg-container .edgeLabel text { font-size: 16px !important; }
|
|
1472
|
+
}
|
|
1473
|
+
</style><div class="flex justify-center items-center w-full min-h-[200px] md:min-h-[250px] lg:min-h-[300px]"><div class="mermaid-svg-container w-full flex justify-center max-w-full" style="font-size: 14px;"><svg data-mock-mermaid="true" width="100%" height="auto"></svg></div></div></div></pre></article></div></div>"
|
|
1474
|
+
`;
|
|
1475
|
+
|
|
1476
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: mismatched-fence-carve-does-not-shelter-opener 1`] = `
|
|
1477
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">go</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-go hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-string">\`\`</span><span class="hljs-string">\`js
|
|
1478
|
+
~~~
|
|
1479
|
+
</span></code></pre></div></div></pre>
|
|
1480
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea><br>
|
|
1481
|
+
hello</p>
|
|
1482
|
+
<pre><code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border">after
|
|
1483
|
+
</code></pre></article></div></div>"
|
|
1484
|
+
`;
|
|
1485
|
+
|
|
1486
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: nested-lists 1`] = `
|
|
1487
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1488
|
+
<li class="pl-2 text-base md:text-lg">first
|
|
1489
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1490
|
+
<li class="pl-2 text-base md:text-lg">nested a</li>
|
|
1491
|
+
<li class="pl-2 text-base md:text-lg">nested b</li>
|
|
1492
|
+
</ul>
|
|
1493
|
+
</li>
|
|
1494
|
+
<li class="pl-2 text-base md:text-lg">second
|
|
1495
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1496
|
+
<li class="pl-2 text-base md:text-lg">sub one</li>
|
|
1497
|
+
<li class="pl-2 text-base md:text-lg">sub two</li>
|
|
1498
|
+
</ol>
|
|
1499
|
+
</li>
|
|
1500
|
+
</ol></article></div></div>"
|
|
1501
|
+
`;
|
|
1502
|
+
|
|
1503
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: raw-html-safe 1`] = `
|
|
1504
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><details><summary>More</summary>
|
|
1505
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">hidden body</p>
|
|
1506
|
+
</details>
|
|
1507
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Line<br>break and <kbd>Ctrl</kbd>+<mark>C</mark>.</p></article></div></div>"
|
|
1508
|
+
`;
|
|
1509
|
+
|
|
1510
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: raw-html-unknown-tag 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Share <their> settings and the <ticket> element.</p></article></div></div>"`;
|
|
1511
|
+
|
|
1512
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-after-info-string-closer-does-not-unescape 1`] = `
|
|
1513
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Explaining <textarea> in prose.</p>
|
|
1514
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1515
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">js</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-js hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);">x
|
|
1516
|
+
<span class="hljs-string">\`\`</span><span class="hljs-string">\`html
|
|
1517
|
+
</textarea>
|
|
1518
|
+
</span></code></pre></div></div></pre>
|
|
1519
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">tail</p></article></div></div>"
|
|
1520
|
+
`;
|
|
1521
|
+
|
|
1522
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-attribute-does-not-unescape 1`] = `
|
|
1523
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea></p>
|
|
1524
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">Heading</h1>
|
|
1525
|
+
<div title="</textarea>">x</div></article></div></div>"
|
|
1526
|
+
`;
|
|
1527
|
+
|
|
1528
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-blockquoted-fence-does-not-unescape 1`] = `
|
|
1529
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element is a form control whose closing tag matters.</p>
|
|
1530
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1531
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-symbol">&lt;</span>textarea name="bio"<span class="hljs-symbol">&gt;</span>hello<span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1532
|
+
</code></pre></div></div></pre>
|
|
1533
|
+
</div></blockquote>
|
|
1534
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2></article></div></div>"
|
|
1535
|
+
`;
|
|
1536
|
+
|
|
1537
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-collapsed-reference-label-does-not-unescape 1`] = `
|
|
1538
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1539
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 "></a></p>
|
|
1540
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1541
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1542
|
+
`;
|
|
1543
|
+
|
|
1544
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-continuation-line-fence-does-not-unescape 1`] = `
|
|
1545
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1546
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1547
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1548
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">item</p>
|
|
1549
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1550
|
+
</code></pre></div></div></pre>
|
|
1551
|
+
</li>
|
|
1552
|
+
</ul>
|
|
1553
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1554
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1555
|
+
`;
|
|
1556
|
+
|
|
1557
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-apostrophe-definition-title-does-not-unescape 1`] = `
|
|
1558
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1559
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1560
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1561
|
+
`;
|
|
1562
|
+
|
|
1563
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-bracket-definition-destination-does-not-unescape 1`] = `
|
|
1564
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1565
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1566
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1567
|
+
`;
|
|
1568
|
+
|
|
1569
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-bracket-definition-label-does-not-unescape 1`] = `
|
|
1570
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1571
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1572
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1573
|
+
`;
|
|
1574
|
+
|
|
1575
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-paren-definition-title-does-not-unescape 1`] = `
|
|
1576
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1577
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1578
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1579
|
+
`;
|
|
1580
|
+
|
|
1581
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-escaped-quote-definition-title-does-not-unescape 1`] = `
|
|
1582
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1583
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1584
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1585
|
+
`;
|
|
1586
|
+
|
|
1587
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-fence-does-not-unescape 1`] = `
|
|
1588
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea></p>
|
|
1589
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">Heading</h1>
|
|
1590
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">para2</p>
|
|
1591
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1592
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1593
|
+
`;
|
|
1594
|
+
|
|
1595
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-footnote-label-does-not-unescape 1`] = `
|
|
1596
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1597
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">See<sup><a href="#user-content-fn-%3C/textarea%3E" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">1</a></sup></p>
|
|
1598
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1599
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p>
|
|
1600
|
+
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">Footnotes</h2>
|
|
1601
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1602
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1603
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">note <a href="#user-content-fnref-%3C/textarea%3E" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 data-footnote-backref">↩</a></p>
|
|
1604
|
+
</li>
|
|
1605
|
+
</ol>
|
|
1606
|
+
</section></article></div></div>"
|
|
1607
|
+
`;
|
|
1608
|
+
|
|
1609
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-html-comment-does-not-unescape 1`] = `
|
|
1610
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Explaining <textarea> in prose.</p>
|
|
1611
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1612
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">tail</p></article></div></div>"
|
|
1613
|
+
`;
|
|
1614
|
+
|
|
1615
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-indented-code-does-not-unescape 1`] = `
|
|
1616
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Explaining <textarea> in prose.</p>
|
|
1617
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1618
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
1619
|
+
</code></pre></div></div></pre>
|
|
1620
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">tail</p></article></div></div>"
|
|
1621
|
+
`;
|
|
1622
|
+
|
|
1623
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-code-does-not-unescape 1`] = `
|
|
1624
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea></p>
|
|
1625
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">Heading</h1>
|
|
1626
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">para2 with <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border"></textarea></code> inline</p></article></div></div>"
|
|
1627
|
+
`;
|
|
1628
|
+
|
|
1629
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-image-alt-does-not-unescape 1`] = `
|
|
1630
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1631
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><img alt="</textarea>" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="/x"></p>
|
|
1632
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1633
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1634
|
+
`;
|
|
1635
|
+
|
|
1636
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-image-title-does-not-unescape 1`] = `
|
|
1637
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1638
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><img alt="a" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="/x"></p>
|
|
1639
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1640
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1641
|
+
`;
|
|
1642
|
+
|
|
1643
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-angle-destination-does-not-unescape 1`] = `
|
|
1644
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1645
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/textarea" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
1646
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1647
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1648
|
+
`;
|
|
1649
|
+
|
|
1650
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-paren-title-does-not-unescape 1`] = `
|
|
1651
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1652
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
1653
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1654
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1655
|
+
`;
|
|
1656
|
+
|
|
1657
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-single-quoted-title-does-not-unescape 1`] = `
|
|
1658
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1659
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
1660
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1661
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1662
|
+
`;
|
|
1663
|
+
|
|
1664
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-inline-link-title-does-not-unescape 1`] = `
|
|
1665
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1666
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
1667
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1668
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1669
|
+
`;
|
|
1670
|
+
|
|
1671
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-link-definition-destination-does-not-unescape 1`] = `
|
|
1672
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1673
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1674
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1675
|
+
`;
|
|
1676
|
+
|
|
1677
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-link-definition-title-does-not-unescape 1`] = `
|
|
1678
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1679
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1680
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1681
|
+
`;
|
|
1682
|
+
|
|
1683
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-list-indented-fence-does-not-unescape 1`] = `
|
|
1684
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Explaining <textarea> in prose.</p>
|
|
1685
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1686
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1687
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1688
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">item</p>
|
|
1689
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">go</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-go hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-string">\`\`</span><span class="hljs-string">\`html
|
|
1690
|
+
</textarea>
|
|
1691
|
+
\`</span><span class="hljs-string">\`\`</span>
|
|
1692
|
+
</code></pre></div></div></pre>
|
|
1693
|
+
</li>
|
|
1694
|
+
</ul>
|
|
1695
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">tail</p></article></div></div>"
|
|
1696
|
+
`;
|
|
1697
|
+
|
|
1698
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-listed-image-alt-does-not-unescape 1`] = `
|
|
1699
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1700
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1701
|
+
<li class="pl-2 text-base md:text-lg"><img alt="</textarea>" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="/x"></li>
|
|
1702
|
+
</ul>
|
|
1703
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1704
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1705
|
+
`;
|
|
1706
|
+
|
|
1707
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-listed-inline-link-title-does-not-unescape 1`] = `
|
|
1708
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1709
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1710
|
+
<li class="pl-2 text-base md:text-lg"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></li>
|
|
1711
|
+
</ul>
|
|
1712
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1713
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1714
|
+
`;
|
|
1715
|
+
|
|
1716
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-marker-line-fence-does-not-unescape 1`] = `
|
|
1717
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1718
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1719
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1720
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1721
|
+
</code></pre></div></div></pre>
|
|
1722
|
+
</li>
|
|
1723
|
+
</ul>
|
|
1724
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1725
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1726
|
+
`;
|
|
1727
|
+
|
|
1728
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-marker-line-ordered-fence-does-not-unescape 1`] = `
|
|
1729
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1730
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1731
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1732
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1733
|
+
</code></pre></div></div></pre>
|
|
1734
|
+
</li>
|
|
1735
|
+
</ol>
|
|
1736
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1737
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1738
|
+
`;
|
|
1739
|
+
|
|
1740
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-marker-line-tab-fence-does-not-unescape 1`] = `
|
|
1741
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1742
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1743
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1744
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1745
|
+
</code></pre></div></div></pre>
|
|
1746
|
+
</li>
|
|
1747
|
+
</ul>
|
|
1748
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1749
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1750
|
+
`;
|
|
1751
|
+
|
|
1752
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-mid-paragraph-inline-link-title-does-not-unescape 1`] = `
|
|
1753
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1754
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">See <a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a> for more.</p>
|
|
1755
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1756
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1757
|
+
`;
|
|
1758
|
+
|
|
1759
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-code-span-does-not-unescape 1`] = `
|
|
1760
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1761
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Use <code class="font-mono text-[0.9em] px-1.5 py-0.5 rounded border bg-ods-card text-ods-text-primary border-ods-border">foo </textarea></code> today.</p>
|
|
1762
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1763
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1764
|
+
`;
|
|
1765
|
+
|
|
1766
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-definition-label-does-not-unescape 1`] = `
|
|
1767
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1768
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1769
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1770
|
+
`;
|
|
1771
|
+
|
|
1772
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-definition-label-first-line-does-not-unescape 1`] = `
|
|
1773
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1774
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1775
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1776
|
+
`;
|
|
1777
|
+
|
|
1778
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-definition-title-does-not-unescape 1`] = `
|
|
1779
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1780
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1781
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1782
|
+
`;
|
|
1783
|
+
|
|
1784
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-link-definition-destination-does-not-unescape 1`] = `
|
|
1785
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1786
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1787
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1788
|
+
`;
|
|
1789
|
+
|
|
1790
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-multiline-link-definition-does-not-unescape 1`] = `
|
|
1791
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1792
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1793
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1794
|
+
`;
|
|
1795
|
+
|
|
1796
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-narrow-marker-line-fence-does-not-unescape 1`] = `
|
|
1797
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1798
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1799
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1800
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1801
|
+
</code></pre></div></div></pre>
|
|
1802
|
+
</li>
|
|
1803
|
+
</ul></article></div></div>"
|
|
1804
|
+
`;
|
|
1805
|
+
|
|
1806
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-narrow-ordered-marker-line-fence-does-not-unescape 1`] = `
|
|
1807
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1808
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1809
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1810
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1811
|
+
</code></pre></div></div></pre>
|
|
1812
|
+
</li>
|
|
1813
|
+
</ol></article></div></div>"
|
|
1814
|
+
`;
|
|
1815
|
+
|
|
1816
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-nested-marker-line-fence-does-not-unescape 1`] = `
|
|
1817
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1818
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1819
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1820
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1821
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1822
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1823
|
+
</code></pre></div></div></pre>
|
|
1824
|
+
</li>
|
|
1825
|
+
</ul>
|
|
1826
|
+
</li>
|
|
1827
|
+
</ul></article></div></div>"
|
|
1828
|
+
`;
|
|
1829
|
+
|
|
1830
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-nested-marker-line-link-definition-does-not-unescape 1`] = `
|
|
1831
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1832
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1833
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1834
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1835
|
+
<li class="pl-2 text-base md:text-lg"></li>
|
|
1836
|
+
</ul>
|
|
1837
|
+
</li>
|
|
1838
|
+
</ul></article></div></div>"
|
|
1839
|
+
`;
|
|
1840
|
+
|
|
1841
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-image-alt-does-not-unescape 1`] = `
|
|
1842
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1843
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1844
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><img alt="</textarea>" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="/x"></p>
|
|
1845
|
+
</div></blockquote>
|
|
1846
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1847
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1848
|
+
`;
|
|
1849
|
+
|
|
1850
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-inline-link-title-does-not-unescape 1`] = `
|
|
1851
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1852
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1853
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
1854
|
+
</div></blockquote>
|
|
1855
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1856
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1857
|
+
`;
|
|
1858
|
+
|
|
1859
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-list-indented-fence-does-not-unescape 1`] = `
|
|
1860
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1861
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1862
|
+
<ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1863
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1864
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Example:</p>
|
|
1865
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1866
|
+
</code></pre></div></div></pre>
|
|
1867
|
+
</li>
|
|
1868
|
+
</ol>
|
|
1869
|
+
</div></blockquote>
|
|
1870
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1871
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1872
|
+
`;
|
|
1873
|
+
|
|
1874
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-marker-line-fence-does-not-unescape 1`] = `
|
|
1875
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1876
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1877
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1878
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1879
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1880
|
+
</code></pre></div></div></pre>
|
|
1881
|
+
</li>
|
|
1882
|
+
</ul>
|
|
1883
|
+
</div></blockquote>
|
|
1884
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1885
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1886
|
+
`;
|
|
1887
|
+
|
|
1888
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-quoted-multiline-definition-label-does-not-unescape 1`] = `
|
|
1889
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1890
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1891
|
+
</div></blockquote>
|
|
1892
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1893
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1894
|
+
`;
|
|
1895
|
+
|
|
1896
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-reference-image-alt-does-not-unescape 1`] = `
|
|
1897
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1898
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><img alt="</textarea>" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="/x"></p>
|
|
1899
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1900
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1901
|
+
`;
|
|
1902
|
+
|
|
1903
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-reference-label-does-not-unescape 1`] = `
|
|
1904
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1905
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
1906
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1907
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1908
|
+
`;
|
|
1909
|
+
|
|
1910
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-tab-indented-code-does-not-unescape 1`] = `
|
|
1911
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Explaining <textarea> in prose.</p>
|
|
1912
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1913
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"></textarea>
|
|
1914
|
+
</code></pre></div></div></pre>
|
|
1915
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">tail</p></article></div></div>"
|
|
1916
|
+
`;
|
|
1917
|
+
|
|
1918
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-three-line-definition-label-does-not-unescape 1`] = `
|
|
1919
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <textarea> element explained.</p>
|
|
1920
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1921
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1922
|
+
`;
|
|
1923
|
+
|
|
1924
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-closer-in-unclosed-fence-does-not-unescape 1`] = `
|
|
1925
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Explaining <textarea> in HTML.</p>
|
|
1926
|
+
<h2 id="heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">Heading</h2>
|
|
1927
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
1928
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
1929
|
+
`;
|
|
1930
|
+
|
|
1931
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-inline-image-alt-does-not-unescape 1`] = `
|
|
1932
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <iframe> element explained.</p>
|
|
1933
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><img alt="</iframe>" width="400" height="400" style="width: auto; height: auto;" class="max-w-full max-h-[400px] w-auto h-auto rounded-lg object-contain" src="/x"></p>
|
|
1934
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1935
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1936
|
+
`;
|
|
1937
|
+
|
|
1938
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-inline-link-title-does-not-unescape 1`] = `
|
|
1939
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <iframe> element explained.</p>
|
|
1940
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><a href="/x" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 ">a</a></p>
|
|
1941
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1942
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1943
|
+
`;
|
|
1944
|
+
|
|
1945
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-marker-line-fence-does-not-unescape 1`] = `
|
|
1946
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <iframe> element explained.</p>
|
|
1947
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1948
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1949
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">iframe</span>></span>
|
|
1950
|
+
</code></pre></div></div></pre>
|
|
1951
|
+
</li>
|
|
1952
|
+
</ul>
|
|
1953
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1954
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1955
|
+
`;
|
|
1956
|
+
|
|
1957
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-multiline-code-span-does-not-unescape 1`] = `
|
|
1958
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <iframe> element explained.</p>
|
|
1959
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Use \`foo</p>
|
|
1960
|
+
\` today.
|
|
1961
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1962
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1963
|
+
`;
|
|
1964
|
+
|
|
1965
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-multiline-definition-label-does-not-unescape 1`] = `
|
|
1966
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <iframe> element explained.</p>
|
|
1967
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">[foo</p>
|
|
1968
|
+
]: /x
|
|
1969
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1970
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
1971
|
+
`;
|
|
1972
|
+
|
|
1973
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-closer-in-narrow-marker-line-fence-does-not-unescape 1`] = `
|
|
1974
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">The <iframe> element explained.</p>
|
|
1975
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1976
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1977
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">iframe</span>></span>
|
|
1978
|
+
</code></pre></div></div></pre>
|
|
1979
|
+
</li>
|
|
1980
|
+
</ul></article></div></div>"
|
|
1981
|
+
`;
|
|
1982
|
+
|
|
1983
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-in-inline-code-in-blockquoted-html-block-not-sheltered 1`] = `
|
|
1984
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
1985
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
1986
|
+
<div>
|
|
1987
|
+
\`<iframe>\`
|
|
1988
|
+
</div>
|
|
1989
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
1990
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p>
|
|
1991
|
+
</div></blockquote></article></div></div>"
|
|
1992
|
+
`;
|
|
1993
|
+
|
|
1994
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-in-inline-code-in-tab-list-item-html-block-not-sheltered 1`] = `
|
|
1995
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1996
|
+
<li class="pl-2 text-base md:text-lg">
|
|
1997
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
1998
|
+
<li class="pl-2 text-base md:text-lg">intro
|
|
1999
|
+
<div>
|
|
2000
|
+
\`<iframe>\`
|
|
2001
|
+
more
|
|
2002
|
+
</div></li>
|
|
2003
|
+
</ul>
|
|
2004
|
+
</li>
|
|
2005
|
+
</ul>
|
|
2006
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2007
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2008
|
+
`;
|
|
2009
|
+
|
|
2010
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-iframe-in-nbsp-filler-html-block-not-sheltered 1`] = `
|
|
2011
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div>
|
|
2012
|
+
|
|
2013
|
+
\`<iframe>\`
|
|
2014
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">rest of the answer</p></div></article></div></div>"
|
|
2015
|
+
`;
|
|
2016
|
+
|
|
2017
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-mask-survives-turkish-dotted-i 1`] = `
|
|
2018
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">İİİİİİİİİİİİİİİİİİİİİİİİİ <textarea>a</textarea></p>
|
|
2019
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea></p>
|
|
2020
|
+
<h2 id="later-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">Later heading</h2>
|
|
2021
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2022
|
+
<li class="pl-2 text-base md:text-lg">item one</li>
|
|
2023
|
+
</ul></article></div></div>"
|
|
2024
|
+
`;
|
|
2025
|
+
|
|
2026
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-after-foreign-filler-in-blockquoted-html-block-not-sheltered 1`] = `
|
|
2027
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
2028
|
+
<div>
|
|
2029
|
+
-
|
|
2030
|
+
\`<textarea>\`
|
|
2031
|
+
</div></div></blockquote>
|
|
2032
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2033
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2034
|
+
`;
|
|
2035
|
+
|
|
2036
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-after-foreign-filler-in-list-item-html-block-not-sheltered 1`] = `
|
|
2037
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2038
|
+
<li class="pl-2 text-base md:text-lg">
|
|
2039
|
+
<div>
|
|
2040
|
+
>
|
|
2041
|
+
\`<textarea>\`
|
|
2042
|
+
</div></li>
|
|
2043
|
+
</ul>
|
|
2044
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2045
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2046
|
+
`;
|
|
2047
|
+
|
|
2048
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-html-block-details-not-sheltered 1`] = `
|
|
2049
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2050
|
+
<details>
|
|
2051
|
+
\`\`\`
|
|
2052
|
+
<textarea>
|
|
2053
|
+
\`\`\`
|
|
2054
|
+
</details>
|
|
2055
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2056
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2057
|
+
`;
|
|
2058
|
+
|
|
2059
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-html-block-div-not-sheltered 1`] = `
|
|
2060
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2061
|
+
<div>
|
|
2062
|
+
\`\`\`
|
|
2063
|
+
<textarea>
|
|
2064
|
+
\`\`\`
|
|
2065
|
+
</div>
|
|
2066
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2067
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2068
|
+
`;
|
|
2069
|
+
|
|
2070
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-html-block-pre-not-sheltered 1`] = `
|
|
2071
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2072
|
+
<pre>\`\`\`
|
|
2073
|
+
<textarea>
|
|
2074
|
+
\`\`\`
|
|
2075
|
+
</pre>
|
|
2076
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2077
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2078
|
+
`;
|
|
2079
|
+
|
|
2080
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-blockquoted-html-block-not-sheltered 1`] = `
|
|
2081
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
2082
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2083
|
+
<div>
|
|
2084
|
+
\`<textarea>\`
|
|
2085
|
+
</div>
|
|
2086
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2087
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p>
|
|
2088
|
+
</div></blockquote></article></div></div>"
|
|
2089
|
+
`;
|
|
2090
|
+
|
|
2091
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-deep-tab-list-item-html-block-not-sheltered 1`] = `
|
|
2092
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2093
|
+
<li class="pl-2 text-base md:text-lg">
|
|
2094
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2095
|
+
<li class="pl-2 text-base md:text-lg">
|
|
2096
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2097
|
+
<li class="pl-2 text-base md:text-lg">intro
|
|
2098
|
+
<div>
|
|
2099
|
+
\`<textarea>\`
|
|
2100
|
+
more
|
|
2101
|
+
</div></li>
|
|
2102
|
+
</ul>
|
|
2103
|
+
</li>
|
|
2104
|
+
</ul>
|
|
2105
|
+
</li>
|
|
2106
|
+
</ul>
|
|
2107
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2108
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2109
|
+
`;
|
|
2110
|
+
|
|
2111
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-details-not-sheltered 1`] = `
|
|
2112
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2113
|
+
<details>
|
|
2114
|
+
\`<textarea>\`
|
|
2115
|
+
</details>
|
|
2116
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2117
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2118
|
+
`;
|
|
2119
|
+
|
|
2120
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-div-not-sheltered 1`] = `
|
|
2121
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2122
|
+
<div>
|
|
2123
|
+
\`<textarea>\`
|
|
2124
|
+
</div>
|
|
2125
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2126
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2127
|
+
`;
|
|
2128
|
+
|
|
2129
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-pre-not-sheltered 1`] = `
|
|
2130
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2131
|
+
<pre>\`<textarea>\`
|
|
2132
|
+
</pre>
|
|
2133
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2134
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2135
|
+
`;
|
|
2136
|
+
|
|
2137
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-html-block-span-not-sheltered 1`] = `
|
|
2138
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2139
|
+
<span>
|
|
2140
|
+
\`<textarea>\`
|
|
2141
|
+
</span>
|
|
2142
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2143
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2144
|
+
`;
|
|
2145
|
+
|
|
2146
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-list-item-html-block-not-sheltered 1`] = `
|
|
2147
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2148
|
+
<li class="pl-2 text-base md:text-lg">
|
|
2149
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2150
|
+
<div>
|
|
2151
|
+
\`<textarea>\`
|
|
2152
|
+
</div>
|
|
2153
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2154
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p>
|
|
2155
|
+
</li>
|
|
2156
|
+
</ul></article></div></div>"
|
|
2157
|
+
`;
|
|
2158
|
+
|
|
2159
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-nested-blockquoted-html-block-not-sheltered 1`] = `
|
|
2160
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
2161
|
+
<blockquote class="border-l-4 border-ods-accent ml-0 pl-6 my-8 py-4 rounded-r-lg bg-ods-bg-surface"><div class="font-sans text-ods-text-secondary text-lg">
|
|
2162
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2163
|
+
<details>
|
|
2164
|
+
\`<textarea>\`
|
|
2165
|
+
</details>
|
|
2166
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2167
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p>
|
|
2168
|
+
</div></blockquote>
|
|
2169
|
+
</div></blockquote></article></div></div>"
|
|
2170
|
+
`;
|
|
2171
|
+
|
|
2172
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-ordered-item-html-block-not-sheltered 1`] = `
|
|
2173
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ol class="list-decimal list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2174
|
+
<li class="pl-2 text-base md:text-lg">
|
|
2175
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2176
|
+
<div>
|
|
2177
|
+
\`<textarea>\`
|
|
2178
|
+
</div>
|
|
2179
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2180
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p>
|
|
2181
|
+
</li>
|
|
2182
|
+
</ol></article></div></div>"
|
|
2183
|
+
`;
|
|
2184
|
+
|
|
2185
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-inline-code-in-tab-list-item-html-block-not-sheltered 1`] = `
|
|
2186
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2187
|
+
<li class="pl-2 text-base md:text-lg">
|
|
2188
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2189
|
+
<li class="pl-2 text-base md:text-lg">intro
|
|
2190
|
+
<div>
|
|
2191
|
+
\`<textarea>\`
|
|
2192
|
+
more
|
|
2193
|
+
</div></li>
|
|
2194
|
+
</ul>
|
|
2195
|
+
</li>
|
|
2196
|
+
</ul>
|
|
2197
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2198
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2199
|
+
`;
|
|
2200
|
+
|
|
2201
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-opener-in-nbsp-filler-html-block-not-sheltered 1`] = `
|
|
2202
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><div>
|
|
2203
|
+
|
|
2204
|
+
\`<textarea>\`
|
|
2205
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">rest of the answer</p>
|
|
2206
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2207
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></div></article></div></div>"
|
|
2208
|
+
`;
|
|
2209
|
+
|
|
2210
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-iframe-escaped 1`] = `
|
|
2211
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2212
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><iframe/></p>
|
|
2213
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2214
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2215
|
+
<li class="pl-2 text-base md:text-lg">item</li>
|
|
2216
|
+
</ul></article></div></div>"
|
|
2217
|
+
`;
|
|
2218
|
+
|
|
2219
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-opener-in-html-block-div-not-sheltered 1`] = `
|
|
2220
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2221
|
+
<div>
|
|
2222
|
+
\`\`\`
|
|
2223
|
+
<textarea/>
|
|
2224
|
+
\`\`\`
|
|
2225
|
+
</div>
|
|
2226
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2227
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">secret tail</p></article></div></div>"
|
|
2228
|
+
`;
|
|
2229
|
+
|
|
2230
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-spaced-textarea-escaped 1`] = `
|
|
2231
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2232
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea /></p>
|
|
2233
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2234
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2235
|
+
<li class="pl-2 text-base md:text-lg">item</li>
|
|
2236
|
+
</ul></article></div></div>"
|
|
2237
|
+
`;
|
|
2238
|
+
|
|
2239
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-textarea-escaped 1`] = `
|
|
2240
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2241
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea/></p>
|
|
2242
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2243
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2244
|
+
<li class="pl-2 text-base md:text-lg">item</li>
|
|
2245
|
+
</ul></article></div></div>"
|
|
2246
|
+
`;
|
|
2247
|
+
|
|
2248
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-textarea-inline-escaped 1`] = `
|
|
2249
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello <textarea/> world</p>
|
|
2250
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2></article></div></div>"
|
|
2251
|
+
`;
|
|
2252
|
+
|
|
2253
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-self-closing-title-escaped 1`] = `
|
|
2254
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2255
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><title/></p>
|
|
2256
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2257
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2258
|
+
<li class="pl-2 text-base md:text-lg">item</li>
|
|
2259
|
+
</ul></article></div></div>"
|
|
2260
|
+
`;
|
|
2261
|
+
|
|
2262
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-slash-not-immediately-before-gt-is-inert 1`] = `
|
|
2263
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2264
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea/ ></p>
|
|
2265
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea/foo></p>
|
|
2266
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea//></p>
|
|
2267
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2268
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2269
|
+
<li class="pl-2 text-base md:text-lg">item</li>
|
|
2270
|
+
</ul></article></div></div>"
|
|
2271
|
+
`;
|
|
2272
|
+
|
|
2273
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: rawtext-title-closer-in-fence-does-not-unescape 1`] = `
|
|
2274
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><title></p>
|
|
2275
|
+
<h1 id="heading" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">Heading</h1>
|
|
2276
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"></<span class="hljs-name">title</span>></span>
|
|
2277
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
2278
|
+
`;
|
|
2279
|
+
|
|
2280
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: reference-style-link 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">See <a href="https://example.com/reference" class="text-ods-accent no-underline relative transition-colors duration-200 hover:after:w-full after:content-[''] after:absolute after:w-0 after:h-0.5 after:-bottom-0.5 after:left-0 after:bg-ods-accent after:transition-all after:duration-300 " target="_blank" rel="noopener noreferrer">the docs</a> for details.</p></article></div></div>"`;
|
|
2281
|
+
|
|
2282
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: svg-title-a11y-label 1`] = `"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><svg viewBox="0 0 24 24"><title>Coverage chart</title><desc>Four quarters</desc><circle cx="12" cy="12" r="10"></circle></svg></p></article></div></div>"`;
|
|
2283
|
+
|
|
2284
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: task-list 1`] = `
|
|
2285
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2286
|
+
<li class="pl-2 text-base md:text-lg"><input disabled="" type="checkbox" checked=""> done item</li>
|
|
2287
|
+
<li class="pl-2 text-base md:text-lg"><input disabled="" type="checkbox"> open item</li>
|
|
2288
|
+
</ul></article></div></div>"
|
|
2289
|
+
`;
|
|
2290
|
+
|
|
2291
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: tilde-fence-protects-html-sample 1`] = `
|
|
2292
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2293
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-tag"><<span class="hljs-name">textarea</span>></span>sample<span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
2294
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
2295
|
+
`;
|
|
2296
|
+
|
|
2297
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: truncated-comment-in-fence-does-not-blank-to-eof 1`] = `
|
|
2298
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-comment"><!-- todo
|
|
2299
|
+
</span></code></pre></div></div></pre>
|
|
2300
|
+
<textarea>a</textarea></article></div></div>"
|
|
2301
|
+
`;
|
|
2302
|
+
|
|
2303
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: unclosed-fence-body-renders-escaped 1`] = `
|
|
2304
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">intro</p>
|
|
2305
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">html</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-html hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"><span class="hljs-symbol">&lt;</span>their<span class="hljs-symbol">&gt;</span>x<span class="hljs-symbol">&lt;</span>/their<span class="hljs-symbol">&gt;</span>
|
|
2306
|
+
</code></pre></div></div></pre></article></div></div>"
|
|
2307
|
+
`;
|
|
2308
|
+
|
|
2309
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: unclosed-iframe-does-not-swallow 1`] = `
|
|
2310
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2311
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><iframe></p>
|
|
2312
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2313
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">more</p></article></div></div>"
|
|
2314
|
+
`;
|
|
2315
|
+
|
|
2316
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: unclosed-textarea-does-not-swallow 1`] = `
|
|
2317
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2318
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><textarea></p>
|
|
2319
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2320
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">more</p></article></div></div>"
|
|
2321
|
+
`;
|
|
2322
|
+
|
|
2323
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: unclosed-title-does-not-swallow 1`] = `
|
|
2324
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Hello</p>
|
|
2325
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4"><title></p>
|
|
2326
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2>
|
|
2327
|
+
<p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">more</p></article></div></div>"
|
|
2328
|
+
`;
|
|
2329
|
+
|
|
2330
|
+
exports[`SimpleMarkdownRenderer golden parity > renders fixture: wide-list-marker-gap-clamps-content-column 1`] = `
|
|
2331
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><p class="leading-relaxed mb-4 first:mt-0 last:mb-0 text-ods-text-primary md:text-h4 lg:text-h4">Explaining <textarea> in HTML.</p>
|
|
2332
|
+
<ul class="list-disc list-outside my-4 ml-8 space-y-2 text-ods-text-primary">
|
|
2333
|
+
<li class="pl-2 text-base md:text-lg">
|
|
2334
|
+
<pre><div class="code-block-container border rounded-lg my-6 overflow-hidden bg-ods-card border-ods-border"><div class="code-header border-b px-4 py-2 bg-ods-card border-ods-border"><span class="font-sans text-xs uppercase tracking-wide text-ods-text-tertiary">bash</span></div><div class="p-4"><pre class="overflow-x-auto"><code class="language-bash hljs font-mono text-[14px]" style="background: transparent; color: var(--color-text-primary);"> foo
|
|
2335
|
+
</textarea>
|
|
2336
|
+
</code></pre></div></div></pre>
|
|
2337
|
+
</li>
|
|
2338
|
+
</ul>
|
|
2339
|
+
<h2 id="after-heading" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">After heading</h2></article></div></div>"
|
|
2340
|
+
`;
|
|
2341
|
+
|
|
2342
|
+
exports[`SimpleMarkdownRenderer golden parity > renders headings with backend sectionIds + demoteMarkdownH1ToH2 1`] = `
|
|
2343
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><h2 id="getting-started" class="font-sans font-bold mt-8 mb-4 first:mt-0 text-heading-1">🚀 Getting Started</h2>
|
|
2344
|
+
<h2 id="setup" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">Setup</h2>
|
|
2345
|
+
<h2 id="setup-2" class="font-sans font-semibold mt-8 mb-4 pb-2 border-b border-ods-border text-heading-2">Setup</h2>
|
|
2346
|
+
<h3 id="deep-dive" class="font-sans font-semibold mt-6 mb-3 text-ods-text-primary text-2xl md:text-3xl">Deep Dive 🔧</h3>
|
|
2347
|
+
<h4 id="h4-level" class="font-sans font-semibold mt-4 mb-2 text-ods-text-primary text-xl">H4 level</h4>
|
|
2348
|
+
<h5 id="h5-level" class="font-sans font-semibold mt-3 mb-2 text-ods-text-primary text-lg md:text-xl">H5 level</h5>
|
|
2349
|
+
<h6 id="h6-level" class="font-sans font-semibold mt-3 mb-1 text-ods-text-primary text-base md:text-lg">H6 level</h6></article></div></div>"
|
|
2350
|
+
`;
|
|
2351
|
+
|
|
2352
|
+
exports[`heading-id and section-extractor slug agreement > agrees with the extractor across fence, container and setext shapes > drift-sections 1`] = `
|
|
2353
|
+
[
|
|
2354
|
+
{
|
|
2355
|
+
"id": "top",
|
|
2356
|
+
"level": 1,
|
|
2357
|
+
"title": "Top",
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
"id": "setext-title",
|
|
2361
|
+
"level": 2,
|
|
2362
|
+
"title": "Setext Title",
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"id": "quoted",
|
|
2366
|
+
"level": 2,
|
|
2367
|
+
"title": "Quoted",
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"id": "listed",
|
|
2371
|
+
"level": 2,
|
|
2372
|
+
"title": "Listed",
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
"id": "quoted-2",
|
|
2376
|
+
"level": 2,
|
|
2377
|
+
"title": "Quoted",
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
"id": "tail",
|
|
2381
|
+
"level": 2,
|
|
2382
|
+
"title": "Tail",
|
|
2383
|
+
},
|
|
2384
|
+
]
|
|
2385
|
+
`;
|
|
2386
|
+
|
|
2387
|
+
exports[`heading-id and section-extractor slug agreement > renderer-generated heading ids equal extractSections ids for the same markdown > extracted-sections 1`] = `
|
|
2388
|
+
[
|
|
2389
|
+
{
|
|
2390
|
+
"id": "getting-started",
|
|
2391
|
+
"level": 1,
|
|
2392
|
+
"title": "🚀 Getting Started",
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"id": "setup",
|
|
2396
|
+
"level": 2,
|
|
2397
|
+
"title": "Setup",
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"id": "setup-2",
|
|
2401
|
+
"level": 2,
|
|
2402
|
+
"title": "Setup",
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"id": "setup-3",
|
|
2406
|
+
"level": 2,
|
|
2407
|
+
"title": "Setup",
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
"id": "section-5",
|
|
2411
|
+
"level": 2,
|
|
2412
|
+
"title": "!!!",
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
"id": "weird-punct-chars",
|
|
2416
|
+
"level": 2,
|
|
2417
|
+
"title": "Weird — punct!, chars?",
|
|
2418
|
+
},
|
|
2419
|
+
]
|
|
2420
|
+
`;
|