Skip to content

Commit

Permalink
feat(core): markdown files now support comments (#1029)
Browse files Browse the repository at this point in the history
* feat(core): markdown files now support comments

* Create hungry-snakes-allow.md

* feat(core): markdown files now support comments

* feat(core): markdown files now support comments
  • Loading branch information
boyney123 authored Dec 15, 2024
1 parent 6f4533b commit fb6c0f2
Show file tree
Hide file tree
Showing 6 changed files with 16,629 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-snakes-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eventcatalog/core": patch
---

feat(core): markdown files now support comments
4 changes: 3 additions & 1 deletion eventcatalog/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { join } from 'node:path';
import remarkDirective from 'remark-directive';
import { remarkDirectives } from "./src/remark-plugins/directives"

import remarkComment from 'remark-comment'

/** @type {import('bin/eventcatalog.config').Config} */
import config from './eventcatalog.config';
import expressiveCode from 'astro-expressive-code';
Expand Down Expand Up @@ -44,7 +46,7 @@ export default defineConfig({
mdx({
// https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
optimize: config.mdxOptimize || false,
remarkPlugins: [remarkDirective, remarkDirectives, mermaid],
remarkPlugins: [remarkDirective, remarkDirectives, remarkComment, mermaid],
gfm: false,
}),
pagefind(),
Expand Down
Loading

0 comments on commit fb6c0f2

Please sign in to comment.