-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correctly extract page titles when not specified in frontmatter, c…
…loses #146 Co-authored-by: Joe Kleinschmidt <joe@Joes-MacBook-Pro-2.local> Co-authored-by: Christian Flach <cmfcmf.flach@gmail.com> Fixes #146
- Loading branch information
1 parent
f169f9a
commit 1f33151
Showing
6 changed files
with
107 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/example-docs/docs/d-s-l-test-no-title-h1-pre-text.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
id: d-s-l-test-no-title-h1-pre-text | ||
# title: DOC TITLE # Deliberately no title here | ||
sidebar_label: SIDEBAR LABEL | ||
--- | ||
|
||
some pre text before the actual page title | ||
|
||
# Page title from markdown | ||
|
||
bla bla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
id: d-s-l-test-no-title-h1 | ||
# title: DOC TITLE # Deliberately no title here | ||
sidebar_label: SIDEBAR LABEL | ||
--- | ||
|
||
# Page title from markdown | ||
|
||
bla bla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
id: d-s-l-test-no-title-h2 | ||
# title: DOC TITLE # Deliberately no title here | ||
sidebar_label: SIDEBAR LABEL | ||
--- | ||
|
||
## Page title from markdown | ||
|
||
bla bla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters