on master help sign in
tailwind.config: run markdown parse step through FDS
0e7731dMatilde Park
tailwind.config.js+8
@@ -1,3 +1,5 @@
1+const { Markdown } = require("@urbit/foundation-design-system");
2+const markdoc = require("@urbit/markdoc");
1module.exports = {
3module.exports = {
2 presets: [require("@urbit/foundation-design-system/tailwind.config")],
4 presets: [require("@urbit/foundation-design-system/tailwind.config")],
3 content: {
5 content: {
@@ -7,5 +9,11 @@ module.exports = {
7 "./components/**/*.{js,ts,jsx,tsx}",
9 "./components/**/*.{js,ts,jsx,tsx}",
8 "./content/**/*.md",
10 "./content/**/*.md",
9 ],
11 ],
12+ transform: {
13+ md: (content) => {
14+ const parsed = Markdown.parse({ post: { content } });
15+ return markdoc.renderers.html(parsed);
16+ },
17+ },
10 },
18 },
11};
19};