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
Hi, I'm using markdown with footnotes. The md syntax looks like
Pineapples on pizza are great.[^ref]
[^ref]: This is a footnote.
Two false positives are generated, one for each [^ref]. If I manually hide the false positives, the JSON is:
{"rule":"MORFOLOGIK_RULE_EN_US","sentence":"^\\QPineapples on pizza are great.^ref\\E$"}
{"rule":"MORFOLOGIK_RULE_EN_US","sentence":"^\\Q^ref: This is a footnote.\\E$"}
I'm now trying to generalise this rule to work for any reference. The idea is to use the regex \^\w+ or \^[a-zA-Z0-9_-]+. I tried littering the sentence with backslashes but to no avail, escaping anything possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm using markdown with footnotes. The md syntax looks like
Two false positives are generated, one for each
[^ref]
. If I manually hide the false positives, the JSON is:I'm now trying to generalise this rule to work for any reference. The idea is to use the regex
\^\w+
or\^[a-zA-Z0-9_-]+
. I tried littering the sentence with backslashes but to no avail, escaping anything possible.I tried
along with variants with more/less slashes.
Beta Was this translation helpful? Give feedback.
All reactions