Help understanding this code #661
-
I need to make an extension that allows me to parse Mustache templating as referenced links. I just cannot figure out how this all works, especially for referenced links in the markdown spec.
Can anyone explain how this is parsed? I need to parse the following
so that the output in html is
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry for the (extremely long) delay in answering this. References are parsed using the I'm going to close this out since it's been open for a while, but I hope this gives you a good starting point! |
Beta Was this translation helpful? Give feedback.
Sorry for the (extremely long) delay in answering this.
References are parsed using the
OpenBrackerParser
andCloseBracketParser
- see https://github.com/thephpleague/commonmark/blob/master/src/Inline/Parser/CloseBracketParser.php#L187 for how we check whether there's a reference.I'm going to close this out since it's been open for a while, but I hope this gives you a good starting point!