Created
May 13, 2025 15:06
-
-
Save a-berg/d6eb30509e3217684807b5eca7c69a67 to your computer and use it in GitHub Desktop.
Typst CLI extract code blocks with yq (filtering by language)
This file contains hidden or 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
typst query notes.typ "<export-code>" --pretty --format yaml | yq '.[] | select(.lang == "bash") | .text' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The same could be done with jq I guess.