on master help sign in
tailwind.config: run markdown parse step through FDS
commit0e7731dfb9b107cc91dc26adc6d66433f75911a3 authorMatilde Park <matilde.park@urbit.org> dateMon 29 Aug 2022, 21:05 (4 years ago) parenta332bde
1 file changed+8
tailwind.config.js+8
tailwind.config.js+8
@@ -1,3 +1,5 @@
1+const { Markdown } = require("@urbit/foundation-design-system");
2+const markdoc = require("@urbit/markdoc");
13module.exports = {
24 presets: [require("@urbit/foundation-design-system/tailwind.config")],
35 content: {
@@ -7,5 +9,11 @@ module.exports = {
79 "./components/**/*.{js,ts,jsx,tsx}",
810 "./content/**/*.md",
911 ],
12+ transform: {
13+ md: (content) => {
14+ const parsed = Markdown.parse({ post: { content } });
15+ return markdoc.renderers.html(parsed);
16+ },
17+ },
1018 },
1119};