Skip to content

docs: Improve custom listing using raw HTML #1677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mcanouil
Copy link
Contributor

@mcanouil mcanouil commented Jun 1, 2025

Enhance clarity and formatting in the custom listing documentation, ensuring better understanding and usability for users creating EJS templates.

From quarto-dev/quarto-cli#11769

@cderv
Copy link
Collaborator

cderv commented Jun 2, 2025

/deploy-preview

Copy link
Contributor

github-actions bot commented Jun 2, 2025

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-1677.quarto.org

🔄 Modified Documents

Copy link
Collaborator

@cderv cderv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would revisit the order and explain, for the start, that EJS templates are processed as a markdown document, and explain that it is best to use Raw HTML to

  • avoid performance issue when processing part that are meant to be HTML with no Markdown
  • avoid escaping problem for those part too

Then show an example for a simple template having only HTML, and then your example with mixing Markdown and HTML.

Internally, we use .ejs.md extension, not sure why we don't use that too for our recommendation. This makes it kind of clear

Anyhow, just sharing though. I'll let @cwickham review

@cderv cderv requested a review from cwickham June 10, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants