Skip to content

Commit

Permalink
chore: fix front matter broken (#2390)
Browse files Browse the repository at this point in the history
Co-authored-by: Luffy <52o@qq52o.cn>
  • Loading branch information
LBZZYZ and sy-records committed Mar 22, 2024
1 parent c2cf54b commit 9e681c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_media/example-with-yaml.md
Expand Up @@ -3,4 +3,4 @@ author: John Smith
date: 2020-1-1
---

> This is from the `example.md`
> This is from the `example-with-yaml.md`
2 changes: 2 additions & 0 deletions docs/embed-files.md
Expand Up @@ -44,6 +44,8 @@ You will get:

## Markdown with YAML Front Matter

Front Matter, commonly utilized in blogging systems like Jekyll, serves to define metadata for a document. The [front-matter.js](https://www.npmjs.com/package/front-matter) package facilitates the extraction of metadata (front matter) from documents.

When using Markdown, YAML front matter will be stripped from the rendered content. The attributes cannot be used in this case.

```markdown
Expand Down
1 change: 1 addition & 0 deletions docs/index.html
Expand Up @@ -219,6 +219,7 @@
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/front-matter.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/ga.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/matomo.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
Expand Down

0 comments on commit 9e681c6

Please sign in to comment.