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
But if the defaults are private then the developer has to dig through the source code to fine them, and then has to copy them over. There will be cases where that's still necessary, because sometimes a new syntax needs to be placed at a specific location in the priority list, but the most common case probably doesn't require that level of intervention.
The text was updated successfully, but these errors were encountered:
Because the order matters, for example, if you put SoftLineBreakSyntax() before LineBreakSyntax(), some syntax might not work as expected, or it might lower the performance if you move them around freely.
But perhaps that shouldn't be the reason for making it private
Is there a reason that the default inline syntaxes are private?
markdown/lib/src/inline_parser.dart
Line 26 in 782b180
Imagine that I want the defaults, but I want to add my own syntax either as top priority, or bottom priority. With public defaults, that's as easy as:
inlineSyntaxes: [ myTopPrioritySyntax, ...defaultInlineSyntaxes, myBottomPrioritySyntax, ]
But if the defaults are private then the developer has to dig through the source code to fine them, and then has to copy them over. There will be cases where that's still necessary, because sometimes a new syntax needs to be placed at a specific location in the priority list, but the most common case probably doesn't require that level of intervention.
The text was updated successfully, but these errors were encountered: