Repository navigation
Commit 20509aa
authored
Cover every social meta tag in the og:site_name tests (#15112)
The website meta markdown pipeline rewrites the content of five tags
after rendering: og:title, twitter:title, og:site_name, og:description
and twitter:description. Each rewrite must touch only the tag Quarto
wrote, never a same-named tag the page added itself. The opt-out
fixture had decoys for only three of the names, so a regression in the
description handler would have gone unnoticed. It now has a decoy for
each of the five, and about.qmd asserts that Quarto's own description
and twitter:title tags still get their rendered values next to the
decoys.
The existing fixtures all use plain-string site names, where the value
written into og:site_name already equals the rendered text. Dropping
the og:site_name rewrite from the site title handler left them all
passing. markdown-site-name.qmd uses a site-name with Markdown and a
shortcode, so the tag only gets the expected plain text if the rendered
value is written back.1 parent 4c7b5d2 commit 20509aa
3 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
0 commit comments