You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In render, detectInit is called to parse the directives using regex and we're sending that to addDirective
Then, when parsing, the jison grammar parses the directives again, then parseDirective of the diagramDB is called, which calls parseDirective in DirectiveUtils.ts. The only thing extra being done there is p.setWrap. This also calls addDirective, possibly adding a duplicate directive to the array.
Steps to reproduce
Follow the flow of code.
Screenshots
No response
Code Sample
No response
Setup
No response
Suggested Solutions
Remove all the directive syntax from grammar
Remove the parseDirective function
Handle the p.setWrap somehow.
When calling render, remove the frontmatter, directives and comments in the beginning itself.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Description
detectInit
is called to parse the directives using regex and we're sending that toaddDirective
parseDirective
of thediagramDB
is called, which callsparseDirective
inDirectiveUtils.ts
. The only thing extra being done there isp.setWrap
. This also callsaddDirective
, possibly adding a duplicate directive to the array.Steps to reproduce
Follow the flow of code.
Screenshots
No response
Code Sample
No response
Setup
No response
Suggested Solutions
p.setWrap
somehow.Additional Context
No response
The text was updated successfully, but these errors were encountered: