-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default file format when Quarto format is
typst
(#7)
* Add default SVG format for Typst output Also add DarkMauve and DarkFlagshipTerrastruct as explicit theme options * Remove duplicate theme DarkMauve was already in the theme list * Allow uppercase layout values Also: - Adds is_nonempty_string helper function - Appends random number for diagram file name - Use d2 file extension not txt for input - Allow alternate syntax for attribute classes on code blocks * Fix d2 class check Also: - Add support for reading d2 diagrams from external files using `file` parameter. Block text is ignored if file parameter is supplied. - Add support for alternate code block syntax without curly braces. - Insert rendered diagrams into the Pandoc mediabag when `embed_type="link"` - Refactor to add helper functions `setPreD2RenderOptions` and `setD2RenderFormat` * Update CHANGELOG.md * Use d2-render instead of svg-convert for temp directory * Add support for gif format Also - add animate_interval parameter - drop setD2RenderFormat helper function - use quarto.project.output_directory to set default folder - revise check for d2 code block class - replace codeblock text if file is provided - add support for tala layout * Use outputPath (not mediabag) if folder is supplied * Update README * Fix typo * Fix error in inline embedding logic * Add check for d2 or txt file extension in file option Also: - add check to see if file exists - Improve handling of code block formatting (when echo=true) - remove duplicative processing for options.pad and options.animate_interval * Update README * Add partial support for code folding (#6) Based on https://github.com/shafayetShafee/add-code-files * Add typst format tests w/ multiple diagram formats Also add external d2 file to test file argument * Update CHANGELOG.md --------- Co-authored-by: Robrecht Cannoodt <[email protected]>
- Loading branch information
1 parent
cc97e8b
commit 1f6fb19
Showing
11 changed files
with
817 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.