[request] add option for only match when language is set on matter #99
bluelovers
commented 2020-01-04 02:13:27 +00:00
(Migrated from github.com)
```js
let text_not_parse = `---
title: Hello
slug: home
---
<h1>Hello world!</h1>
This is content
<!-- end -->
<h1>Hello world</h1>`;
/*
{
content: '---\ntitle: Hello\nslug: home\n---<h1>Hello world!</h1>\nThis is content\n<!-- end -->\n<h1>Hello world</h1>',
data: {},
isEmpty: false,
excerpt: ''
}
*/
```
```js
let text_will_parse = `---yaml
title: Hello
slug: home
---
<h1>Hello world!</h1>
This is content
<!-- end -->
<h1>Hello world</h1>`;
/*
{
content: '<h1>Hello world!</h1>\nThis is content\n<!-- end -->\n<h1>Hello world</h1>',
data: { title: 'Hello', slug: 'home' },
isEmpty: false,
excerpt: ''
}
*/
```
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?