Skip to content

Commit 164df8b

Browse files
authored
Merge pull request #13437 from quarto-dev/bugfix/issue-13421
Do not word-wrap H1s in markdown template
2 parents 9dd4510 + c447305 commit 164df8b

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

news/changelog-1.9.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ All changes included in 1.9:
1111

1212
## Formats
1313

14+
### `gfm`
15+
16+
- ([#13421](https://github.com/quarto-dev/quarto-cli/issues/13421)): Do not word-wrap titles in header.
17+
1418
### `html`
1519

1620
- ([#13413](https://github.com/quarto-dev/quarto-cli/issues/13413)): Fix uncentered play button in `video` shortcodes from cross-reference divs. (author: @bruvellu)

src/resources/pandoc/templates/default.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$if(title)$
2-
# $title$
2+
# $title/nowrap$
33
$endif$
44
$for(by-author)$$it.name.literal$$sep$, $endfor$
55
$if(date)$
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
format: gfm
3+
title: "0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789"
4+
_quarto:
5+
tests:
6+
gfm:
7+
ensureFileRegexMatches:
8+
- []
9+
- ["\n012345"]
10+
---
11+
12+
Do not wrap.

0 commit comments

Comments
 (0)