Commit f1b593c
authored
build: escape handlebars in step source README.md copies (#287)
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.1 parent e09b3fc commit f1b593c
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| |||
0 commit comments