Type definition of the FFF Flavored Frontmatter.
import type { FFFFlavoredFrontmatter } from 'fff-flavored-frontmatter'
Predefined transform presets for FFF Flavored Frontmatter.
import { transform } from 'fff-flavored-frontmatter'
import { hexo } from 'fff-transform-presets'
fm = transform(fm, [hexo])
Remark plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.
import remarkFFF from 'remark-fff'
import { hexo } from 'fff-transform-presets'
export default defineConfig({
remarkPlugins: [[remarkFFF, { presets: [hexo], target: 'astro' }]],
})
markdown-it plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.
import MarkdownIt from 'markdown-it'
import { frontmatterPlugin } from '@mdit-vue/plugin-frontmatter'
import { fffPlugin } from 'markdown-it-fff'
const md = MarkdownIt().use(frontmatterPlugin).use(fffPlugin)
FFF Flavored Frontmatter publication preset for Indiekit.
{
"indiekit-preset-fff": {
"format": "yaml",
"types": "urara"
},
"plugins": ["indiekit-preset-fff"]
}
pnpm create fff netlify-cms
This work is free, it comes without any warranty. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.