Repository navigation
Show a document's front matter behind a setting, and name the document by its title - #124
Merged
Merged
Conversation
…name the document by its title Polhem.Markdown.Avalonia 0.11.0 shows YAML and TOML front matter. Read, the preview, and the HTML and PDF exports turn it on, and the viewer's More toggle is translated in every interface language. The front matter's title, when there is one, names the document in its tab, the window title, the Window menu, File > Open Recent, and an export's suggested file name and title. The tab and window follow the text as it is edited; Open Recent takes the title when the document is opened or saved. A tab's tooltip still shows the file's path. Closes #120
jeff377
enabled auto-merge (squash)
December 5, 2026 07:02
jeff377
disabled auto-merge
December 5, 2026 07:14
Sites that publish Markdown posts do not show their front matter in the text, and showing it gets in the way of reading. Settings > General gets a check box, off by default, that shows it in Read, the preview and the exports; it applies to open documents at once. The front matter's title names the document whatever the setting.
jeff377
enabled auto-merge (squash)
December 5, 2026 07:23
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #120
What changes
Polhem.Markdown.Avalonia0.10.0 → 0.11.0.MarkdownOptions.ShowFrontMatter, so a Hugo, Jekyll or Docusaurus post shows its title, its date, author and tags, and its other fields behind "More". When it is off, all three look as they did with 0.10.0. A change applies to open documents at once. The check box and the "More" text (Viewer_FrontMatterMore) are translated in every interface language.title, when there is one, names the document in its tab, the window title, the Window menu, File > Open Recent, and an export's suggested file name and title. Without one, nothing changes. A tab's tooltip still shows the file's path.titlefield in the recent list's settings), so unsaved edits do not rename an entry.MarkdownHtml.ToPagealready takes it.README.mdandREADME.zh-TW.mddescribe it under Read: hidden by default, shown with the setting.Checked
dotnet buildanddotnet test(Release): 580 passed, 3 skipped.