Skip to content

Commit 47b2f22

Browse files
committed
Add one more syntax that is supported by the lua processing.
1 parent 9272f7a commit 47b2f22

File tree

1 file changed

+23
-3
lines changed
  • dev-docs/feature-format-matrix/qmd-files/crossref/float/table

1 file changed

+23
-3
lines changed

dev-docs/feature-format-matrix/qmd-files/crossref/float/table/document.qmd

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,19 @@ _quarto:
3232
- "div#tbl-3.quarto-float figure.quarto-float.quarto-float-tbl table"
3333
- "div#tbl-4.quarto-float figure.quarto-float.quarto-float-tbl table"
3434
- "div#tbl-5.quarto-float figure.quarto-float.quarto-float-tbl table"
35+
- "div#tbl-6.quarto-float figure.quarto-float.quarto-float-tbl table"
3536
- "div#tbl-1.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
3637
- "div#tbl-2.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
3738
- "div#tbl-3.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
3839
- "div#tbl-4.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
3940
- "div#tbl-5.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
41+
- "div#tbl-6.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
4042
- "a[href=\"#tbl-1\"].quarto-xref"
4143
- "a[href=\"#tbl-2\"].quarto-xref"
4244
- "a[href=\"#tbl-3\"].quarto-xref"
4345
- "a[href=\"#tbl-4\"].quarto-xref"
4446
- "a[href=\"#tbl-5\"].quarto-xref"
47+
- "a[href=\"#tbl-6\"].quarto-xref"
4548
dashboard: *dom-tests
4649
revealjs:
4750
ensureHtmlElements:
@@ -51,16 +54,19 @@ _quarto:
5154
- "div#tbl-3.quarto-float figure.quarto-float.quarto-float-tbl table"
5255
- "div#tbl-4.quarto-float figure.quarto-float.quarto-float-tbl table"
5356
- "div#tbl-5.quarto-float figure.quarto-float.quarto-float-tbl table"
57+
- "div#tbl-6.quarto-float figure.quarto-float.quarto-float-tbl table"
5458
- "div#tbl-1.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
5559
- "div#tbl-2.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
5660
- "div#tbl-3.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
5761
- "div#tbl-4.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
5862
- "div#tbl-5.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
63+
- "div#tbl-6.quarto-float figure.quarto-float.quarto-float-tbl figcaption"
5964
- "a[href=\"#/tbl-1\"].quarto-xref"
6065
- "a[href=\"#/tbl-2\"].quarto-xref"
6166
- "a[href=\"#/tbl-3\"].quarto-xref"
6267
- "a[href=\"#/tbl-4\"].quarto-xref"
6368
- "a[href=\"#/tbl-5\"].quarto-xref"
69+
- "a[href=\"#/tbl-6\"].quarto-xref"
6470
latex: &latex-tests
6571
ensureFileRegexMatches:
6672
-
@@ -69,11 +75,13 @@ _quarto:
6975
- '\\ref\{tbl-3\}'
7076
- '\\ref\{tbl-4\}'
7177
- '\\ref\{tbl-5\}'
78+
- '\\ref\{tbl-6\}'
7279
- '\label\{tbl-1\}'
7380
- '\label\{tbl-2\}'
7481
- '\label\{tbl-3\}'
7582
- '\label\{tbl-4\}'
7683
- '\label\{tbl-5\}'
84+
- '\label\{tbl-6\}'
7785
- '\\begin\{longtable\}'
7886
- '\\includegraphics.*media.*table\.jpg'
7987
beamer: *latex-tests
@@ -85,11 +93,13 @@ _quarto:
8593
- '\<tbl-3\>'
8694
- '\<tbl-4\>'
8795
- '\<tbl-5\>'
96+
- '\<tbl-6\>'
8897
- '#ref\(\<tbl-1\>, supplement: \[Table\]\)'
8998
- '#ref\(\<tbl-2\>, supplement: \[Table\]\)'
9099
- '#ref\(\<tbl-3\>, supplement: \[Table\]\)'
91100
- '#ref\(\<tbl-4\>, supplement: \[Table\]\)'
92101
- '#ref\(\<tbl-5\>, supplement: \[Table\]\)'
102+
- '#ref\(\<tbl-6\>, supplement: \[Table\]\)'
93103
docusaurus-md:
94104
ensureFileRegexMatches:
95105
-
@@ -98,6 +108,7 @@ _quarto:
98108
- '\<div id="tbl-3"\>'
99109
- '\<div id="tbl-4"\>'
100110
- '\<div id="tbl-5"\>'
111+
- '\<div id="tbl-6"\>'
101112
- 'text-align: left.*Left'
102113
- 'text-align: right.*Right'
103114
- 'text-align: center.*Center'
@@ -137,6 +148,7 @@ The crossref Div syntax can also be used to insert a markdown table
137148
- either using Quarto Caption syntax (paragraph below the table) - See @tbl-3
138149
- either using the Pandoc Table Caption syntax - See @tbl-4
139150
- either using `tbl-cap` attributes when this is an output of computations - See @tbl-5
151+
- either using `tbl-cap` attributes on Crossref Div - See @tbl-6
140152

141153
### Quarto Syntax in Div {#quarto-in-div}
142154

@@ -178,8 +190,6 @@ knitr::kable(iris[1:6,])
178190

179191
::: {#tbl-5 .cell tbl-cap='This is the caption for the table'}
180192

181-
::: {.cell-output-display}
182-
183193
| Default | Left | Right | Center |
184194
|---------|:-----|------:|:------:|
185195
| 12 | 12 | 12 | 12 |
@@ -188,5 +198,15 @@ knitr::kable(iris[1:6,])
188198

189199
:::
190200

191-
:::
192201

202+
### Using Div attribute on Cross ref div
203+
204+
::: {#tbl-6 tbl-cap='This is the caption for the table'}
205+
206+
| Default | Left | Right | Center |
207+
|---------|:-----|------:|:------:|
208+
| 12 | 12 | 12 | 12 |
209+
| 123 | 123 | 123 | 123 |
210+
| 1 | 1 | 1 | 1 |
211+
212+
:::

0 commit comments

Comments
 (0)