1.0.19 • Published 3 months ago

@node-novel/md-loader v1.0.19

Weekly downloads
38
License
ISC
Repository
github
Last release
3 months ago

@node-novel/md-loader

支援 Front Matter 的 node-novel-info / mdconf

install

npm install @node-novel/md-loader node-novel-info

請注意必須要手動額外安裝 node-novel-info 這是為了防止當多個 node-novel-info 同時存在時的除錯問題

請注意必須要手動額外安裝 node-novel-info 這是為了防止當多個 node-novel-info 同時存在時的除錯問題

demo

see api in API

demo.ts

import { parse } from '@node-novel/md-loader';

let k = parse(`
---
title: Home
---
# novel

- title: 破滅の魔導王とゴーレムの蛮妃
`, {
	parseOptions: {
		//lowCheckLevel: true,
		throw: false,
	},
});

let r = k.stringify({
	data: {
		//...k.data,
		//kkk: 777,
	},
	//content: k.content,
	mdconf: {
		...k.mdconf,
		aaa: {
			bbb: 777,
		},
	},
});

let r2 = k.stringify(k);

console.dir(k, {
	colors: true,
});

console.log(r);

console.log('---------------------------');

console.log(r2);
1.0.19

3 months ago

1.0.18

3 months ago

1.0.17

1 year ago

1.0.16

2 years ago

1.0.14

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago