上の
なんでも+++
を
+++
title = "タイトル"
date = 2019-12-26T14:08:02.413Z
tags = ["タグ1", "タグ2"]
+++
コンテンツ
正規表現を
export const split: (str: string) => string[] = str => {
return (/^\+{3}\s([^]*?(?!\+{3}))\s\+{3}\s([^]*)$/.exec(str) || []).slice(1)
}
npm install --save-dev toml
import * as toml from 'toml'
toml.parse(str)