jooyoungseo / quarto-highlight-text

Quarto extension that allows to highlight text in a document for various formats: HTML, LaTeX, Typst, and Docx.

Home Page:https://m.canouil.dev/quarto-highlight-text/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Highlight-text Extension For Quarto

This is a Quarto extension that allows to highlight text in a document for various format: HTML, LaTeX, Typst, and Docx.

Installing

quarto add mcanouil/highlight-text

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

Using

To use the extension, add the following to your document's front matter:

filters:
  - highlight-text

Then you can use the span syntax markup to highlight text in your document, e.g.:

[Red]{colour="#b22222" bg-colour="#abc123"} # UK
[Blue]{color="#0000FF" bg-color="#ABC123"} # US

Example

Here is the source code for a minimal example: example.qmd.

This is the output of example.qmd for:

About

Quarto extension that allows to highlight text in a document for various formats: HTML, LaTeX, Typst, and Docx.

https://m.canouil.dev/quarto-highlight-text/

License:MIT License


Languages

Language:Lua 100.0%