|
| 1 | +--- |
| 2 | +title: Testing when-format |
| 3 | +keep-tex: true |
| 4 | +keep-typ: true |
| 5 | +_quarto: |
| 6 | + tests: |
| 7 | + latex: |
| 8 | + ensureFileRegexMatches: |
| 9 | + - ['Only visible in LATEX'] |
| 10 | + - ['Only visible in (?!LATEX|PDF)'] |
| 11 | + pdf: |
| 12 | + ensureLatexFileRegexMatches: |
| 13 | + - ['Only visible in LATEX', 'Only visible in PDF'] |
| 14 | + - ['Only visible in (?!LATEX|PDF)'] |
| 15 | + html: |
| 16 | + ensureFileRegexMatches: |
| 17 | + - ['Only visible in HTML', 'Only visible in HTMLJS'] |
| 18 | + - ['Only visible in (?!HTML)'] |
| 19 | + revealjs: |
| 20 | + ensureFileRegexMatches: |
| 21 | + - ['Only visible in HTML', 'Only visible in HTMLJS', 'Only visible in REVEALJS'] |
| 22 | + - ['Only visible in (?!HTML|REVEALJS)'] |
| 23 | + |
| 24 | + typst: |
| 25 | + ensureTypstFileRegexMatches: |
| 26 | + - ['Only visible in TYPST'] |
| 27 | + - ['Only visible in (?!TYPST)'] |
| 28 | + docx: |
| 29 | + ensureDocxRegexMatches: |
| 30 | + - ['Only visible in DOCX'] |
| 31 | + - ['Only visible in (?!DOCX)'] |
| 32 | + pptx: |
| 33 | + ensurePptxRegexMatches: |
| 34 | + - ['Only visible in PPTX'] |
| 35 | + - 2 |
| 36 | + docusaurus-md: |
| 37 | + ensureFileRegexMatches: |
| 38 | + - ['Only visible in DOCUSAURUS', 'Only visible in DOCUSAURUSMD', 'Only visible in MARKDOWN'] |
| 39 | + - ['Only visible in (?!DOCUSAURUS|MARKDOWN)'] |
| 40 | + hugo-md: |
| 41 | + ensureFileRegexMatches: |
| 42 | + - ['Only visible in HUGO', 'Only visible in MARKDOWN', 'Only visible in HUGOMD'] |
| 43 | + - ['Only visible in (?!HUGO|MARKDOWN)'] |
| 44 | + gfm: |
| 45 | + ensureFileRegexMatches: |
| 46 | + - ['Only visible in GFM', 'Only visible in MARKDOWN', 'Only visible in COMMONMARK'] |
| 47 | + - ['Only visible in (?!GFM|MARKDOWN|COMMONMARK)'] |
| 48 | + commonmark: |
| 49 | + ensureFileRegexMatches: |
| 50 | + - ['Only visible in COMMONMARK', 'Only visible in MARKDOWN'] |
| 51 | + - ['Only visible in (?!GFM|MARKDOWN|COMMONMARK)'] |
| 52 | + markdown: |
| 53 | + ensureFileRegexMatches: |
| 54 | + - ['Only visible in MARKDOWN'] |
| 55 | + - ['Only visible in (?!MARKDOWN)'] |
| 56 | + confluence-publish: |
| 57 | + ensureFileRegexMatches: |
| 58 | + - ['Only visible in CONFLUENCE'] |
| 59 | + - ['Only visible in (?!CONFLUENCE)'] |
| 60 | + asciidoc: |
| 61 | + ensureFileRegexMatches: |
| 62 | + - ['Only visible in ASCIIDOC'] |
| 63 | + - ['Only visible in (?!ASCIIDOC)'] |
| 64 | + dashboard: |
| 65 | + ensureFileRegexMatches: |
| 66 | + - ['Only visible in DASHBOARD', 'Only visible in HTML', 'Only visible in HTMLJS'] |
| 67 | + - ['Only visible in (?!HTML|DASHBOARD)'] |
| 68 | + email: |
| 69 | + ensureFileRegexMatches: |
| 70 | + - ['Only visible in EMAIL', 'Only visible in HTML', 'Only visible in HTMLJS'] |
| 71 | + - ['Only visible in (?!HTML|EMAIL)'] |
| 72 | + ipynb: |
| 73 | + ensureFileRegexMatches: |
| 74 | + - ['Only visible in IPYNB'] |
| 75 | + - ['Only visible in (?!IPYNB)'] |
| 76 | + beamer: |
| 77 | + ensureLatexFileRegexMatches: |
| 78 | + - ['Only visible in BEAMER', 'Only visible in LATEX', 'Only visible in PDF'] |
| 79 | + - ['Only visible in (?!BEAMER|LATEX|PDF)'] |
| 80 | +--- |
| 81 | + |
| 82 | +::: {.content-visible when-format="html"} |
| 83 | +Only visible in HTML |
| 84 | +::: |
| 85 | + |
| 86 | +::: {.content-visible when-format="revealjs"} |
| 87 | +Only visible in REVEALJS |
| 88 | +::: |
| 89 | + |
| 90 | +::: {.content-visible when-format="html:js"} |
| 91 | +Only visible in HTMLJS |
| 92 | +::: |
| 93 | + |
| 94 | +::: {.content-visible when-format="latex"} |
| 95 | +Only visible in LATEX |
| 96 | +::: |
| 97 | + |
| 98 | +::: {.content-visible when-format="pdf"} |
| 99 | +Only visible in PDF |
| 100 | +::: |
| 101 | + |
| 102 | +::: {.content-visible when-format="typst"} |
| 103 | +Only visible in TYPST |
| 104 | +::: |
| 105 | + |
| 106 | +::: {.content-visible when-format="docx"} |
| 107 | +Only visible in DOCX |
| 108 | +::: |
| 109 | + |
| 110 | +::: {.content-visible when-format="pptx"} |
| 111 | +Only visible in PPTX |
| 112 | +::: |
| 113 | + |
| 114 | +::: {.content-visible when-format="epub"} |
| 115 | +Only visible in EPUB |
| 116 | +::: |
| 117 | + |
| 118 | +::: {.content-visible when-format="markdown"} |
| 119 | +Only visible in MARKDOWN |
| 120 | +::: |
| 121 | + |
| 122 | +::: {.content-visible when-format="gfm"} |
| 123 | +Only visible in GFM |
| 124 | +::: |
| 125 | + |
| 126 | +::: {.content-visible when-format="commonmark"} |
| 127 | +Only visible in COMMONMARK |
| 128 | +::: |
| 129 | + |
| 130 | +::: {.content-visible when-format="asciidoc"} |
| 131 | +Only visible in ASCIIDOC |
| 132 | +::: |
| 133 | + |
| 134 | +::: {.content-visible when-format="docusaurus"} |
| 135 | +Only visible in DOCUSAURUS |
| 136 | +::: |
| 137 | + |
| 138 | +::: {.content-visible when-format="docusaurus-md"} |
| 139 | +Only visible in DOCUSAURUSMD |
| 140 | +::: |
| 141 | + |
| 142 | +::: {.content-visible when-format="hugo"} |
| 143 | +Only visible in HUGO |
| 144 | +::: |
| 145 | + |
| 146 | +::: {.content-visible when-format="hugo-md"} |
| 147 | +Only visible in HUGOMD |
| 148 | +::: |
| 149 | + |
| 150 | +::: {.content-visible when-format="confluence"} |
| 151 | +Only visible in CONFLUENCE |
| 152 | +::: |
| 153 | + |
| 154 | +::: {.content-visible when-format="dashboard"} |
| 155 | +Only visible in DASHBOARD |
| 156 | +::: |
| 157 | + |
| 158 | +::: {.content-visible when-format="email"} |
| 159 | +Only visible in EMAIL |
| 160 | +::: |
| 161 | + |
| 162 | +::: {.content-visible when-format="ipynb"} |
| 163 | +Only visible in IPYNB |
| 164 | +::: |
| 165 | + |
| 166 | +::: {.content-visible when-format="beamer"} |
| 167 | +Only visible in BEAMER |
| 168 | +::: |
| 169 | + |
| 170 | + |
| 171 | + |
0 commit comments