Skip to content

rchaput/quarto-font-ligatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarto-font-ligatures

Author: Remy Chaput

This is an extension for Quarto that provides some kind of font ligatures to your documents.

This means that writing => will be replaced with for example.

Installing

quarto add rchaput/quarto-font-ligatures

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

Using

Make sure that your document metadata contains:

---
filters:
  - quarto-font-ligatures
---

Then, simply write your document content, including ligatures, such as =>, ->. They will be automatically replaced with the corresponding UTF-8 character. Note that they must appear as 'words' on their own (separated by spaces) to be detected, meaning that a => b will be effectively replaced with a ⇒ b, but a=>b will not be replaced.

Example

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

The result can be seen here.

About

Use font ligatures in your Quarto documents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages