-
-
Notifications
You must be signed in to change notification settings - Fork 308
-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Hashtags" in code blocks get parsed as hashtags #6
Comments
How about this idea? instead of using regexp for replacing hashtags, using a parser that does different passes. Like this https://github.com/russross/blackfriday/blob/master/markdown.go#L405 It would be something like this: assign last_codeblock_end = 0 start = 0 I don't think its possible to parse it using regexp, at least not with vanilla regexp, I'm not sure how different Go's regexp is from the regular expression used in theory of computation. Just for reference, this is the code that needs changing: Hope this helps. |
How can we move forward here? This is probably less trivial than it looks. Some things which stood out to me:
|
@MCSH Agreed that regex isn't the right solution, and some kind of better parser is needed. Thanks for the suggestion!
|
As reported here: https://mst3k.interlinked.me/@cadey/100673777784986480
The text was updated successfully, but these errors were encountered: