Skip to content

mcanouil/quarto-external

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

External Extension for Quarto

This repository provides an extension for Quarto that allows you to include content from external sources or files into your Quarto documents.

Installation

quarto add mcanouil/quarto-external

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

Usage

To use the external extension, you can include external content or a section from a file into your Quarto document using the external shortcode.

{{< external <URL>#<section-id> >}}

Important

The external shortcode must be placed on its own line with no other content. Include blank lines both before and after the shortcode.

Currently supports .md, .markdown, and .qmd files only.

Note: Using external content breaks the fully reproducible and self-contained nature of Quarto projects, as documents become dependent on external sources that may change or become unavailable.

Example

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

Outputs of example.qmd:

About

Quarto extension to include content or partial content from external file.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors 2

  •  
  •