Replies: 1 comment
-
Yes, plugin ordering may matter in some cases, one relying on the other's output. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
When trying to use mermaid theme (as described here) and load the diagrams from file using
remark-code-snippets
(as suggested here) the snippets are not rendered. Instead an error is shown:Cause
The problem is because of the remark plugins loading order: mermaid is loaded before
options.remarkPlugins
here.Solution
The solution is to use
remark-code-snippets
throughbeforeDefaultRemarkPlugins
instead ofremarkPlugins
.Context
I'm posting it here for the sake of anyone hitting the same problem in the future.
Also, feel free to suggest alternative approaches/solutions, as I'm a very casual docosaurus user.
Beta Was this translation helpful? Give feedback.
All reactions