Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
289 commits
Select commit Hold shift + click to select a range
a7fa751
partial work
cscheid Jun 16, 2023
e2aa2a0
custom HtmlTag node to help rendering
cscheid Jun 16, 2023
df4c67a
Merge branch 'main' into feature/float-crossref
cscheid Jun 19, 2023
f459bd9
table margin captions
cscheid Jun 19, 2023
99febb4
column layouts for non-float-crossref
cscheid Jun 19, 2023
9463b90
Merge branch 'main' into feature/float-crossref
cscheid Jun 20, 2023
c2003a7
bare-bones custom crossref types working in HTML
cscheid Jun 20, 2023
095d4c9
rename crossref items for compatibility with current schema
cscheid Jun 20, 2023
71fc5d0
Merge branch 'main' into feature/float-crossref
cscheid Jun 21, 2023
904e064
filter cleanup
cscheid Jun 21, 2023
9bb0769
filter cleanup
cscheid Jun 21, 2023
4dd35d3
basic latex rendering of simplest figure
cscheid Jun 21, 2023
5c8be7b
cleanup latexcommand, use it in caption and label
cscheid Jun 21, 2023
2190d86
use inlines properly
cscheid Jun 21, 2023
5892a91
minimal hardcoded support for custom floats
cscheid Jun 22, 2023
ccc59b9
minimal support for custom floats in latex
cscheid Jun 22, 2023
1ff69fd
simple margin figures in latex
cscheid Jun 22, 2023
b6e82ad
remove comments
cscheid Jun 23, 2023
6717e5e
minimal latex layouts
cscheid Jun 26, 2023
7a3fbf1
Merge branch 'main' into feature/float-crossref
cscheid Jun 26, 2023
ea7c03f
new feature: *-merge rawblocks and rawblock coalescing
cscheid Jun 26, 2023
53e5cce
cleanup fig caption for custom floats, add test
cscheid Jun 27, 2023
7841cb3
make inlinesToString more robust and stringToInlines more user friendly
cscheid Jun 27, 2023
6606e73
Merge branch 'main' into feature/float-crossref
cscheid Jun 28, 2023
6b79b08
tests
cscheid Jun 28, 2023
0cdb913
force Inlines cast
cscheid Jun 28, 2023
15412ad
remove code that appears unneeded and was breaking knitr-tables.qmd
cscheid Jun 28, 2023
c738833
resolve column classes to correct div
cscheid Jun 28, 2023
37c2ae6
support single-node preamble in html panel rendering
cscheid Jun 28, 2023
5d59b74
Merge branch 'main' into feature/float-crossref
cscheid Jun 29, 2023
c80f647
smoke test for knitr table captions
cscheid Jun 29, 2023
9878be5
use new type for caption
cscheid Jun 29, 2023
9859c18
add xref entries to smoke tests
cscheid Jun 29, 2023
ed5bbbe
more new crossref smoke tests
cscheid Jun 29, 2023
f3b4fb2
more crossref smoke tests
cscheid Jun 29, 2023
9b0ebf2
bring crossref.lua closer to main.lua
cscheid Jun 29, 2023
70f90b5
subfigure float smoke test
cscheid Jun 29, 2023
16af48c
jupyter float smoke test
cscheid Jun 29, 2023
f7f052c
smoke tests for subfloat jupyter figures
cscheid Jun 29, 2023
5360a03
latex smoke tests
cscheid Jun 29, 2023
7c8c4f4
catch multiple comments at eol
cscheid Jun 29, 2023
f4e64a3
remove print
cscheid Jun 29, 2023
97328de
merge
cscheid Jul 10, 2023
af6d527
update
cscheid Jul 10, 2023
bfa54f0
parse markdown in captions from string attributes
cscheid Jul 10, 2023
ce4d54f
partial work
cscheid Jul 10, 2023
63062ec
Merge branch 'main' into feature/float-crossref
cscheid Jul 11, 2023
ecd56a0
coalesce_raw: remove div scaffolding in latex
cscheid Jul 11, 2023
4d13f2e
comments
cscheid Jul 11, 2023
d06e9a8
more tests+files
cscheid Jul 11, 2023
0650770
smoke test
cscheid Jul 11, 2023
ebf20f8
fix typo
cscheid Jul 11, 2023
e192f58
missing file
cscheid Jul 11, 2023
6623006
gitignore
cscheid Jul 11, 2023
0ce3016
more crossref test docs
cscheid Jul 11, 2023
93c7e8a
crossref regression diff test files
cscheid Jul 11, 2023
d2cb4b7
add: internal_error
cscheid Jul 11, 2023
82a63d8
attempt to find caption inside table elements for div floats
cscheid Jul 11, 2023
83d4ba2
test caption inside table elements in div floats
cscheid Jul 11, 2023
853c227
Merge branch 'main' into feature/float-crossref
cscheid Jul 12, 2023
dd3587e
Merge branch 'main' into feature/float-crossref
cscheid Jul 12, 2023
c2cb63f
move tests
cscheid Jul 13, 2023
b4876bb
basic docx figure support
cscheid Jul 14, 2023
e0e020c
Merge branch 'main' into feature/float-crossref
cscheid Jul 14, 2023
340f8ef
add xpath checker for docx in smoke-all
cscheid Jul 14, 2023
dc36f73
Merge branch 'main' into feature/float-crossref
cscheid Jul 14, 2023
54b0dd6
basic docx figure smoke test checking with xpath
cscheid Jul 14, 2023
483bbfc
merge
cscheid Jul 14, 2023
7787acf
handle shortcode vals as strings
cscheid Jul 14, 2023
b4448d7
Merge branch 'main' into feature/float-crossref
cscheid Jul 18, 2023
d4ba97c
Merge branch 'main' into feature/float-crossref
cscheid Jul 19, 2023
490e9ae
test
cscheid Jul 19, 2023
23bb58f
test
cscheid Jul 19, 2023
71a0e63
use right img
cscheid Jul 19, 2023
1f222a6
test
cscheid Jul 19, 2023
648a3c5
test
cscheid Jul 19, 2023
46cb8da
fix crossref type of linked figures
cscheid Jul 19, 2023
419f116
fix xpath in tests
cscheid Jul 19, 2023
107d7e0
fix xpath result type verification
cscheid Jul 19, 2023
6073b6f
test
cscheid Jul 19, 2023
3600583
test
cscheid Jul 19, 2023
1e2f995
merge
cscheid Jul 21, 2023
8430538
test
cscheid Jul 21, 2023
e2e0350
Merge branch 'main' into feature/float-crossref
cscheid Jul 24, 2023
bc87487
lst-cap docx test
cscheid Jul 24, 2023
46be0e3
improve handling in the presence of single-block content
cscheid Jul 24, 2023
3c1a148
fix tests
cscheid Jul 24, 2023
8876bc2
caption location for floats in docx
cscheid Jul 24, 2023
6b92de3
test
cscheid Jul 24, 2023
41648ba
test
cscheid Jul 24, 2023
1807af2
partial test
cscheid Jul 24, 2023
3424030
update
cscheid Jul 24, 2023
9c03766
test
cscheid Jul 24, 2023
46279ad
test
cscheid Jul 24, 2023
f1c699b
more test
cscheid Jul 24, 2023
52802a7
handle inlines
cscheid Jul 24, 2023
03df07e
raw table caption test
cscheid Jul 24, 2023
af93353
Merge branch 'main' into feature/float-crossref
cscheid Jul 25, 2023
168153a
remove print
cscheid Jul 25, 2023
8a290b5
docx subfloat layout
cscheid Jul 25, 2023
d6a32c1
images
cscheid Jul 25, 2023
e9f7969
remove print
cscheid Jul 25, 2023
b82286f
docx content fixups for subfloats and layouts
cscheid Jul 25, 2023
5209594
better subfloat width
cscheid Jul 25, 2023
b51129f
subfloat test
cscheid Jul 25, 2023
abaed0c
test
cscheid Jul 25, 2023
2e00660
test
cscheid Jul 25, 2023
531fdb7
docx tests done
cscheid Jul 25, 2023
8668f53
remove stale files
cscheid Jul 26, 2023
2b7bd31
refactor panel preamble handling
cscheid Jul 26, 2023
59e900b
partial fix for latex layouts
cscheid Jul 26, 2023
cb26abb
add debugging helper
cscheid Jul 26, 2023
d251b9b
fix panel layout in latex, many other bugs
cscheid Jul 26, 2023
f809beb
fix typo
cscheid Jul 26, 2023
558ab6d
passing revealjs tests
cscheid Jul 27, 2023
e17ce1e
switch to a simple floatcross default impl with a warning
cscheid Jul 27, 2023
f97dd14
default impl for panel layout
cscheid Jul 27, 2023
89f2fe6
odt xpath verifiers
cscheid Jul 27, 2023
0f07fb8
merge
cscheid Aug 11, 2023
037a190
Merge branch 'main' into feature/float-crossref
cscheid Aug 14, 2023
1e85657
allow {} with custom filters in custom walk
cscheid Aug 14, 2023
4e38e1a
recognize figure divs that have fig-cap attributes
cscheid Aug 14, 2023
2363355
fix tests
cscheid Aug 14, 2023
59a6fd6
floatcrossref support for layout/cites preprocess
cscheid Aug 15, 2023
f582d1f
change test with new latex being emitted
cscheid Aug 15, 2023
f4953ab
use new date syntax
cscheid Aug 15, 2023
4ee6463
Merge branch 'main' into feature/float-crossref
cscheid Aug 15, 2023
0a056fe
update tables and latex tests
cscheid Aug 15, 2023
b4e66c8
fix tests with new DOM
cscheid Aug 16, 2023
83375f6
Merge branch 'main' into feature/float-crossref
cscheid Aug 16, 2023
8a37720
handle table classes in FloatCrossref
cscheid Aug 16, 2023
6a1835f
fix handling of table classes
cscheid Aug 16, 2023
31918d5
move sidenotes out of table as well as longtable
cscheid Aug 17, 2023
769b5d8
FloatCrossref -> FloatRefTarget
cscheid Aug 17, 2023
89feb75
Merge branch 'main' into feature/float-crossref
cscheid Aug 17, 2023
b6d164a
change test for new simplified longtable output
cscheid Aug 17, 2023
383c4e0
special case for simple table reftarget in latex
cscheid Aug 17, 2023
d91041f
typo
cscheid Aug 17, 2023
dbe5b7e
add new regex for new syntax being emitted by pandoc
cscheid Aug 17, 2023
6194fb5
html label-less figures
cscheid Aug 17, 2023
96239a0
more fixes for not-quite-figureness
cscheid Aug 18, 2023
002089a
do not use underscores in latex refs
cscheid Aug 18, 2023
d9f96fa
new julia version
cscheid Aug 18, 2023
2d62eb0
use quarto style for refs
cscheid Aug 18, 2023
a8f8c44
Merge branch 'main' into feature/float-crossref
cscheid Aug 22, 2023
d0b0bbb
Merge branch 'main' into feature/float-crossref
cscheid Aug 22, 2023
a553101
asciidoc tests. subfloats not yet working
cscheid Aug 22, 2023
c631a30
asciidoc support
cscheid Aug 22, 2023
15ddb93
basic JATS support and tests
cscheid Aug 22, 2023
395869f
Merge branch 'main' into feature/float-crossref
cscheid Aug 23, 2023
e132fb3
jats panel support
cscheid Aug 23, 2023
c930780
reinstate broken jats tests
cscheid Aug 23, 2023
a40fcb3
asciidoc panels
cscheid Aug 23, 2023
35adafa
asciidoc subfloats
cscheid Aug 23, 2023
0b29c81
jats subfloat preamble
cscheid Aug 23, 2023
54d4371
jats tests
cscheid Aug 23, 2023
d172cfb
warn instead of fail with bad prefixes in float reftargets
cscheid Aug 23, 2023
4e9a3e3
starting work towards confluence
cscheid Aug 24, 2023
dad57f6
progress towards confluence crossref work
cscheid Aug 24, 2023
d4c9058
basic confluence crossrefs
cscheid Aug 24, 2023
becaa54
confluence+jats fixes
cscheid Aug 24, 2023
5b204c3
partial work towards ipynb
cscheid Aug 24, 2023
ecb973d
partial ipynb embed work
cscheid Aug 24, 2023
5c266a8
cleanup
cscheid Aug 24, 2023
0da0e70
partial work towards ipynb
cscheid Aug 24, 2023
978acd5
Merge branch 'main' into feature/float-crossref
cscheid Aug 25, 2023
106435f
basic embed tests passing
cscheid Aug 25, 2023
814b5bf
add information to print
cscheid Aug 25, 2023
9aef678
cleanup
cscheid Aug 25, 2023
fd92c23
more meca and jats and ipynb fixes
cscheid Aug 25, 2023
f2c605d
attempt to rollback manifest
cscheid Aug 25, 2023
d007b4e
Merge branch 'main' into feature/float-crossref
cscheid Aug 28, 2023
c116922
basic typst floatreftarget
cscheid Aug 28, 2023
5c02529
typst unit tests
cscheid Aug 28, 2023
56238dd
partial work towards typst citation configuration
cscheid Aug 29, 2023
bfc747c
explicit parenthesization
cscheid Aug 29, 2023
cb76da1
partial work towards typst custom formats
cscheid Aug 29, 2023
eacf31c
fix unreachable code
cscheid Aug 29, 2023
8bcfd77
add fixme
cscheid Aug 29, 2023
253d418
simplify and speed up attribute()
cscheid Aug 29, 2023
5cce171
handle fixme
cscheid Aug 29, 2023
87bceeb
unit test for in-div captions in multiple crossref formats
cscheid Aug 29, 2023
f286e4e
remove unneeded code
cscheid Aug 29, 2023
c1a4944
add fail_and_ask_for_bugreport, use it consistently
cscheid Aug 29, 2023
96dbc31
cleanup
cscheid Aug 29, 2023
6d09421
cleanup
cscheid Aug 29, 2023
e9220ea
cleanup
cscheid Aug 29, 2023
8ee978a
use full normalization pipeline in quarto internal reading functions
cscheid Aug 29, 2023
707bf21
Merge branch 'main' into feature/float-crossref
cscheid Aug 29, 2023
3573716
forward manuscript caption info to reftarget
cscheid Aug 29, 2023
3464da9
Merge branch 'main' into feature/float-crossref
cscheid Aug 29, 2023
a4325ad
add missing file
cscheid Aug 30, 2023
e272edc
add missing files
cscheid Aug 30, 2023
cb89ec1
fix typo
cscheid Aug 30, 2023
94a1e5c
changelog entry
cscheid Aug 30, 2023
7a66630
use CSS classes as described in the (new) docs
cscheid Aug 30, 2023
300542d
new css
cscheid Aug 30, 2023
bf145fb
revealjs test fixups for autostretch
cscheid Aug 30, 2023
87009cc
update test
cscheid Aug 30, 2023
37e7867
more cleanup
cscheid Aug 30, 2023
9346247
Merge branch 'main' into feature/float-crossref
cscheid Aug 30, 2023
f2fd6bc
add missing assets
cscheid Aug 30, 2023
9c650e3
rename file
cscheid Aug 30, 2023
47b2783
combine some filters
cscheid Aug 31, 2023
b0071b0
more cleanup
cscheid Aug 31, 2023
bf9c6dd
Merge branch 'main' into feature/float-crossref
cscheid Aug 31, 2023
56ed05d
remove unused code
cscheid Aug 31, 2023
af0d442
address some fixmes
cscheid Aug 31, 2023
9083b5d
parse_float rawlatex inputs
cscheid Aug 31, 2023
342206a
add luacoverage docs and annotations
cscheid Sep 1, 2023
9cdbc53
more code coverage fixes
cscheid Sep 1, 2023
9d6eff7
fix missing call
cscheid Sep 1, 2023
3e2be3b
more test coverage fixes
cscheid Sep 1, 2023
7b3b213
Merge branch 'main' into feature/float-crossref
cscheid Sep 4, 2023
672fb5c
merge
cscheid Sep 5, 2023
3d64425
first shot at typst subfigure rendering. counters still broken
cscheid Sep 5, 2023
10c9a6e
caption location
cscheid Sep 5, 2023
0bed119
latex tests
cscheid Sep 6, 2023
06bbc23
subfloat support for typst
cscheid Sep 6, 2023
71c8b42
fix ref formatting
cscheid Sep 6, 2023
3a304a8
fixme review with @dragonstyle
cscheid Sep 6, 2023
45294a1
test fixes
cscheid Sep 6, 2023
17dcac7
Merge branch 'main' into feature/float-crossref
cscheid Sep 6, 2023
947897d
Merge branch 'main' into feature/float-crossref
cscheid Sep 7, 2023
57683f9
merge
cscheid Sep 7, 2023
805c29b
Merge branch 'main' into feature/float-crossref
cscheid Sep 8, 2023
0d0ad71
fixes for captions in listings of executable code cells
cscheid Sep 11, 2023
fb17b8b
Merge branch 'main' into feature/float-crossref
cscheid Sep 12, 2023
7dbb3a2
crossref ide filter + typst fix
cscheid Sep 13, 2023
d0b761b
Merge branch 'main' into feature/float-crossref
cscheid Sep 13, 2023
2e5e7cc
Merge branch 'main' into feature/float-crossref
cscheid Sep 13, 2023
1878d2e
temporarily disable test for format that needs changing
cscheid Sep 13, 2023
f093b6e
temporarily remove bad test
cscheid Sep 13, 2023
5f98ec5
fix for Blocks
cscheid Sep 13, 2023
47ccd56
temporarily disable tests
cscheid Sep 13, 2023
2b75ebe
Merge branch 'main' into feature/float-crossref
cscheid Sep 13, 2023
80fc148
typst 0.8.0 figure.caption support
cscheid Sep 13, 2023
3dee4ba
Merge branch 'main' into feature/float-crossref
cscheid Sep 14, 2023
57329b8
be less aggressive with converting Figure nodes to FloatRefTarget
cscheid Sep 14, 2023
08845cf
check for '' instead of nil
cscheid Sep 14, 2023
b9bae95
support complex preamble in confluence panel layouts
cscheid Sep 14, 2023
aa4e74d
render stray Figure nodes the old way
cscheid Sep 14, 2023
bf45dfc
Pandoc Figure latex treatment
cscheid Sep 14, 2023
d08f56c
don't use attr for compatibility with custom ast nodes
cscheid Sep 14, 2023
45db107
typst uniform figure support
cscheid Sep 15, 2023
dca82d8
Merge branch 'main' into feature/float-crossref
cscheid Sep 15, 2023
4717296
write in sorted order for consistent output
cscheid Sep 15, 2023
3c4ab31
underscore -> dash in yaml entries
cscheid Sep 15, 2023
71ff129
fix custom crossref schemas
cscheid Sep 15, 2023
f0a2bab
support crossref: false
cscheid Sep 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ win_configuration.bat
src/resources/preview/quarto-preview.js
.prettierrc.json
_manuscript

# generated by coverage tools
tests/docs/luacov/luacov.report.html
tests/docs/luacov/report.html
5 changes: 1 addition & 4 deletions dev-docs/lua-coverage-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ run the following commands:

```bash
cd quarto-cli/tests
export QUARTO_LUACOV=`pwd`/luacov.stats.out
rm -f luacov.stats.out # to get a fresh report; otherwise it appends
./run-tests.sh
quarto render docs/luacov/report.qmd
./run-tests-with-luacov.sh
```

The report is an HTML file, and will be under `docs/luacov/luacov.report.html`.
Expand Down
5 changes: 5 additions & 0 deletions news/changelog-1.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@

- ([#6766](https://github.com/quarto-dev/quarto-cli/issues/6766)): Add `id` as valid CSL property when specifying a documents citation metadata.

## Crossrefs

- ([#6620](https://github.com/quarto-dev/quarto-cli/issues/6620)): Introduce `FloatRefTarget` AST nodes that generalize crossref targets to include figures, tables, and custom floating elements.

## Other Fixes and Improvements

- ([#2214](https://github.com/quarto-dev/quarto-cli/issues/2214), reopened): don't report a non-existing version of Google Chrome in macOS.
Expand All @@ -186,6 +190,7 @@
- ([#6487](https://github.com/quarto-dev/quarto-cli/discussions/6487)): Fix `serviceworkers` check in `htmlDependency` to look at the correct key.
- ([#6178](https://github.com/quarto-dev/quarto-cli/pull/6178)): When `QUARTO_LOG_LEVEL=DEBUG`, information about search for a R binary will be shown.
- ([#5755](https://github.com/quarto-dev/quarto-cli/pull/5755)): Allow document metadata to control conditional content.
- ([#6620](https://github.com/quarto-dev/quarto-cli/pull/6620)): Rewrite Crossreferenceable figure support. See the [prerelease documentation](https://quarto.org/docs/prerelease/1.4/) for more information.
- ([#6697](https://github.com/quarto-dev/quarto-cli/pull/6697)): Fix issue with outputing to stdout (`quarto render <file> -o -`) on Windows.
- ([#6705](https://github.com/quarto-dev/quarto-cli/pull/6705)): Fix issue with gfm output being removed when rendered with other formats.
- ([#6746](https://github.com/quarto-dev/quarto-cli/issues/6746)): Let stdout and stderr finish independently to avoid deadlock.
Expand Down
22 changes: 22 additions & 0 deletions src/command/render/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ const kQuartoVersion = "quarto-version";

const kQuartoSource = "quarto-source";

const kQuartoCustomFormat = "quarto-custom-format";

export async function filterParamsJson(
args: string[],
options: PandocOptions,
Expand Down Expand Up @@ -127,6 +129,10 @@ export async function filterParamsJson(
defaults,
);

const customFormatParams = extractCustomFormatParams(
options.format.metadata,
);

const params: Metadata = {
...includes,
...initFilterParams(dependenciesFile),
Expand All @@ -141,6 +147,7 @@ export async function filterParamsJson(
...jatsFilterParams(options),
...notebookContextFilterParams(options),
...filterParams,
...customFormatParams,
[kResultsFile]: pandocMetadataPath(resultsFile),
[kTimingFile]: pandocMetadataPath(timingFile),
[kQuartoFilters]: filterSpec,
Expand All @@ -161,6 +168,21 @@ export function quartoMainFilter() {
return resourcePath("filters/main.lua");
}

function extractCustomFormatParams(
metadata: Metadata,
) {
// pull out custom format spec if provided
const customFormatParams = metadata[kQuartoCustomFormat];
if (customFormatParams) {
delete metadata[kQuartoCustomFormat];
return {
[kQuartoCustomFormat]: customFormatParams,
};
} else {
return {};
}
}

function extractFilterSpecParams(
metadata: Metadata,
) {
Expand Down
11 changes: 5 additions & 6 deletions src/core/handlers/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*
* base.ts
*
* Copyright (C) 2022 Posit Software, PBC
*
*/
* base.ts
*
* Copyright (C) 2022 Posit Software, PBC
*/

import {
HandlerContextResults,
Expand Down Expand Up @@ -717,7 +716,7 @@ export function getDivAttributes(
}
}
if (options?.[kCellLstCap]) {
attrs.push(`caption="${options?.[kCellLstCap]}"`);
attrs.push(`lst-cap="${options?.[kCellLstCap]}"`);
}
const classStr = (options?.classes as (string | undefined)) || "";

Expand Down
2 changes: 1 addition & 1 deletion src/core/jupyter/jupyter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ async function mdFromCodeCell(
}

if (typeof cell.options[kCellLstCap] === "string") {
md.push(` caption=\"${cell.options[kCellLstCap]}\"`);
md.push(` lst-cap=\"${cell.options[kCellLstCap]}\"`);
}
if (typeof cell.options[kCodeFold] !== "undefined") {
md.push(` code-fold=\"${cell.options[kCodeFold]}\"`);
Expand Down
9 changes: 8 additions & 1 deletion src/dev_import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"diff": "./vendor/cdn.skypack.dev/diff@5.0.0.js",
"observablehq/parser": "./vendor/cdn.skypack.dev/@observablehq/parser@4.5.0.js",
"js-yaml": "./vendor/cdn.skypack.dev/js-yaml@4.1.0.js",
"slimdom": "./vendor/cdn.skypack.dev/slimdom@4.2.0.js",
"fontoxpath": "./vendor/cdn.skypack.dev/fontoxpath@3.29.1.js",
"https://deno.land/std@0.161.0/": "./vendor/deno.land/std@0.185.0/",
"https://deno.land/std@0.101.0/": "./vendor/deno.land/std@0.185.0/",
"https://deno.land/std@0.105.0/": "./vendor/deno.land/std@0.185.0/",
Expand Down Expand Up @@ -280,13 +282,17 @@
"/-/acorn-walk@v7.2.0-HE7wS37ePcNncqJvsD8k/dist=es2019,mode=imports/optimized/acorn-walk.js": "./vendor/cdn.skypack.dev/-/acorn-walk@v7.2.0-HE7wS37ePcNncqJvsD8k/dist=es2019,mode=imports/optimized/acorn-walk.js",
"/-/acorn-private-class-elements@v1.0.0-74UyKouPfmJKyVmXndKD/dist=es2019,mode=imports/optimized/acorn-private-class-elements.js": "./vendor/cdn.skypack.dev/-/acorn-private-class-elements@v1.0.0-74UyKouPfmJKyVmXndKD/dist=es2019,mode=imports/optimized/acorn-private-class-elements.js",
"/-/acorn@v8.4.0-TUBEehokUmfefnUMjao9/dist=es2019,mode=imports/optimized/acorn.js": "./vendor/cdn.skypack.dev/-/acorn@v8.4.0-TUBEehokUmfefnUMjao9/dist=es2019,mode=imports/optimized/acorn.js",
"/-/xspattern@v3.1.0-ChOssaTvtX8cZQgPaNnM/dist=es2019,mode=imports/optimized/xspattern.js": "./vendor/cdn.skypack.dev/-/xspattern@v3.1.0-ChOssaTvtX8cZQgPaNnM/dist=es2019,mode=imports/optimized/xspattern.js",
"/-/prsc@v4.0.0-yiYip3qo0YwPataeg654/dist=es2019,mode=imports/optimized/prsc.js": "./vendor/cdn.skypack.dev/-/prsc@v4.0.0-yiYip3qo0YwPataeg654/dist=es2019,mode=imports/optimized/prsc.js",
"/-/whynot@v5.0.0-TIWeI93neceQKiPCfmA6/dist=es2019,mode=imports/optimized/whynot.js": "./vendor/cdn.skypack.dev/-/whynot@v5.0.0-TIWeI93neceQKiPCfmA6/dist=es2019,mode=imports/optimized/whynot.js",
"/-/@observablehq/parser@v4.5.0-rWZiNfab8flhVomtfVvr/dist=es2019,mode=imports/optimized/@observablehq/parser.js": "./vendor/cdn.skypack.dev/-/@observablehq/parser@v4.5.0-rWZiNfab8flhVomtfVvr/dist=es2019,mode=imports/optimized/@observablehq/parser.js",
"/-/acorn-class-fields@v1.0.0-VEggkLxq9gMrdwRuKkzZ/dist=es2019,mode=imports/optimized/acorn-class-fields.js": "./vendor/cdn.skypack.dev/-/acorn-class-fields@v1.0.0-VEggkLxq9gMrdwRuKkzZ/dist=es2019,mode=imports/optimized/acorn-class-fields.js",
"/-/acorn-walk@v8.2.0-X811aiix0R2fkBGq305v/dist=es2019,mode=imports/optimized/acorn-walk.js": "./vendor/cdn.skypack.dev/-/acorn-walk@v8.2.0-X811aiix0R2fkBGq305v/dist=es2019,mode=imports/optimized/acorn-walk.js",
"/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js": "./vendor/cdn.skypack.dev/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js",
"/-/binary-search-bounds@v2.0.5-c8IgO4OqUhed8ANHQXKv/dist=es2019,mode=imports/optimized/binary-search-bounds.js": "./vendor/cdn.skypack.dev/-/binary-search-bounds@v2.0.5-c8IgO4OqUhed8ANHQXKv/dist=es2019,mode=imports/optimized/binary-search-bounds.js",
"/-/blueimp-md5@v2.19.0-FsBtHB6ITwdC3L5Giq4Q/dist=es2019,mode=imports/optimized/blueimp-md5.js": "./vendor/cdn.skypack.dev/-/blueimp-md5@v2.19.0-FsBtHB6ITwdC3L5Giq4Q/dist=es2019,mode=imports/optimized/blueimp-md5.js",
"/-/dayjs@v1.8.21-6syVEc6qGP8frQXKlmJD/dist=es2019,mode=imports/optimized/dayjs.js": "./vendor/cdn.skypack.dev/-/dayjs@v1.8.21-6syVEc6qGP8frQXKlmJD/dist=es2019,mode=imports/optimized/dayjs.js",
"/-/fontoxpath@v3.29.1-a0ohYsVP957eLX7RfgAa/dist=es2019,mode=imports/optimized/fontoxpath.js": "./vendor/cdn.skypack.dev/-/fontoxpath@v3.29.1-a0ohYsVP957eLX7RfgAa/dist=es2019,mode=imports/optimized/fontoxpath.js",
"/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/cloneDeep.js": "./vendor/cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/cloneDeep.js",
"/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/debounce.js": "./vendor/cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/debounce.js",
"/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/difference.js": "./vendor/cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/difference.js",
Expand All @@ -303,7 +309,8 @@
"/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/toString.js": "./vendor/cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/toString.js",
"/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/uniq.js": "./vendor/cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/uniq.js",
"/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/uniqBy.js": "./vendor/cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/unoptimized/uniqBy.js",
"/-/moment-guess@v1.2.4-bDXl7KQy0hLGNuGhyGb4/dist=es2019,mode=imports/optimized/moment-guess.js": "./vendor/cdn.skypack.dev/-/moment-guess@v1.2.4-bDXl7KQy0hLGNuGhyGb4/dist=es2019,mode=imports/optimized/moment-guess.js"
"/-/moment-guess@v1.2.4-bDXl7KQy0hLGNuGhyGb4/dist=es2019,mode=imports/optimized/moment-guess.js": "./vendor/cdn.skypack.dev/-/moment-guess@v1.2.4-bDXl7KQy0hLGNuGhyGb4/dist=es2019,mode=imports/optimized/moment-guess.js",
"/-/slimdom@v4.2.0-QzuHPU3P67qdOzczKt6u/dist=es2019,mode=imports/optimized/slimdom.js": "./vendor/cdn.skypack.dev/-/slimdom@v4.2.0-QzuHPU3P67qdOzczKt6u/dist=es2019,mode=imports/optimized/slimdom.js"
}
}
}
3 changes: 0 additions & 3 deletions src/execute/ojs/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,6 @@ export async function ojsCompile(
if (outputVal === "all") {
attrs.push(`output="all"`);
}
if (cell.options?.[kCellLstCap]) {
attrs.push(`caption="${cell.options?.[kCellLstCap]}"`);
}
const {
classes,
attrs: otherAttrs,
Expand Down
8 changes: 4 additions & 4 deletions src/format/html/format-html-bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ function bootstrapHtmlPostprocessor(
for (let j = 0; j < images.length; j++) {
(images[j] as Element).classList.add("figure-img");
}
const captions = figure.querySelectorAll("figcaption");
for (let j = 0; j < captions.length; j++) {
(captions[j] as Element).classList.add("figure-caption");
}
// const captions = figure.querySelectorAll("figcaption");
// for (let j = 0; j < captions.length; j++) {
// (captions[j] as Element).classList.add("figure-caption");
// }
}

// move the toc if there is a sidebar
Expand Down
Loading