quarto-dev / quarto-dev/quarto-cli

typescript shortcodes need to be in a line by themselves

Open
#1,767 6 comments 1 reaction 1 assignee View on GitHub

@cscheid is already working on this.

Since Aug 9, 2022.

enhancement includes lint shortcodes
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1766

Originally posted by ialbert August 9, 2022
The include tag seems to work only when preceded by whitespace. Example code:

Including on a new line works:

{{< include _date.md >}}

this also works:

     {{< include _date.md >}}

This does not work: {{< include _date.md >}}

the rendered HTML output is:

Including on a new line works:

May 26, 2022

this also works:

May 26, 2022

This does not work:

is that by design? Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.