Skip to content

build: escape handlebars in step source README.md copies#287

Merged
jnsttl merged 1 commit into
mainfrom
fix/escape-handlebars-in-step-readme
Jun 1, 2026
Merged

build: escape handlebars in step source README.md copies#287
jnsttl merged 1 commit into
mainfrom
fix/escape-handlebars-in-step-readme

Conversation

@petermuessig
Copy link
Copy Markdown
Contributor

Why

The earlier fix in #284 wrapped {{ ... }} / {% ... %} placeholders in fenced code blocks and inline code spans, but only when producing the rendered HTML pages under dist/<tutorial>/build/<step>/README.md.

The README files copied alongside the step source code under dist/<tutorial>/steps/<step>/README.md were left untouched and still went through Jekyll/Liquid as-is — so placeholders like {{appTitle}} and {{appDescription}} were stripped on the published site for that copy as well.

What

Run the README files copied next to step sources through escapeCodeBlocks() so both rendering paths preserve the handlebars placeholders verbatim.

The previous fix wrapped {{ ... }} / {% ... %} placeholders in fenced
code blocks and inline code spans only when generating the HTML pages
under dist/<tutorial>/build/<step>/README.md. The downloadable step
sources copied to dist/<tutorial>/steps/<step>/README.md were left
untouched and went through Jekyll/Liquid as-is, so placeholders such
as {{appTitle}} and {{appDescription}} were stripped on the published
site.

Run the README files copied alongside the step sources through
escapeCodeBlocks() as well so both rendering paths preserve the
handlebars placeholders verbatim.
@petermuessig petermuessig requested a review from jnsttl June 1, 2026 15:55
@jnsttl jnsttl merged commit f1b593c into main Jun 1, 2026
3 checks passed
@jnsttl jnsttl deleted the fix/escape-handlebars-in-step-readme branch June 1, 2026 16:32
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