Skip to content

YAML support on excerpt#4

Open
Ruulul wants to merge 2 commits into
AgregoreWeb:mainfrom
Ruulul:patch-1
Open

YAML support on excerpt#4
Ruulul wants to merge 2 commits into
AgregoreWeb:mainfrom
Ruulul:patch-1

Conversation

@Ruulul

@Ruulul Ruulul commented May 26, 2022

Copy link
Copy Markdown

now YAML are ignored on the top of the file when going to render.

Comment thread lib.js
: 0
}
let excerpt_ = content.slice(start, 100)
if (excerpt_.indexOf('\n') > 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this account for cases where there's an empty newline after the second ---?

e.g.

---
hello: world
---

# My content starts here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants