@xmark/theme-section-template
v0.24.1
Published
Theme file to be used with @xmark/transform-section-template
Readme
@xmark/theme-section-template
xmark plugin to apply styles to structure generated by @xmark/transform-section-template
Usage
yarn add @xmark/core @xmark/transform-section-template @xmark/them-section-templateconst inspect = require('unist-util-inspect');
const XMark = require('@xmark/core');
const transform = require('@xmark/transform-section-template');
const theme = require('@xmark/theme-section-template');
const xmark = XMark();
xmark.useTransform(transform, {});
xmark.useTheme(theme, {});
const markdown = `
`;
const hast = xmark.toHAST(markdown);
console.log(inspect(hast));