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
My start regex to match the equation looks like this (?s)equation_.*?\.\., so it's effectively using the single line flag. However, it looks like embedmd does not support this kind of flags.
My other thought was to substitute these flags by something like equation_[\S\s]*?\.\. , but then embedmd also throws an error saying \S was not escaped.
Does anyone have a recommendation for me?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Alright, looks like the restrictions of POSIX ERE were not allowing the [\S\s] notation. I forked the repo and changed the regexp.CompilePosix to regexp.Compile. Also, absolute file paths can be consumed by embedmd in that version. I could do a PR, however I guess it would be better to keep using the POSIX regexp and just use the regular compile function with a certain flag. The repo can be found here
Hey there,
thanks for the awesome repo!
I'm trying to match a codeblock that looks like this
My start regex to match the equation looks like this
(?s)equation_.*?\.\.
, so it's effectively using the single line flag. However, it looks like embedmd does not support this kind of flags.My other thought was to substitute these flags by something like
equation_[\S\s]*?\.\.
, but then embedmd also throws an error saying \S was not escaped.Does anyone have a recommendation for me?
Thanks in advance!
The text was updated successfully, but these errors were encountered: