Skip to content

Commit

Permalink
fix: restore directive recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Jan 18, 2024
1 parent 7a480f6 commit 8c04e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/directives/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ export const directivesPlugin = realmPlugin<{
realm.pub(directiveDescriptors$, params?.directiveDescriptors || [])
},

init: (realm) => {
init: (realm, params) => {
realm.pubIn({
[directiveDescriptors$]: params?.directiveDescriptors || [],
// import
[addMdastExtension$]: directiveFromMarkdown(),
[addSyntaxExtension$]: directive(),
Expand Down

0 comments on commit 8c04e42

Please sign in to comment.