tomncooper / pandoc-gls

A pandoc filter allowing easier syntax for the Latex glossaries package with Markdown documents
33 stars 10 forks source link

Filter doesn't match terms with numbers in them #1

Closed Cerebus closed 5 years ago

Cerebus commented 5 years ago

E.g., (+K8S) will not be substituted with \gls{K8S} even though the label is legal.

Cerebus commented 5 years ago

Too small to send a PR; just change the ac capture to %w:

11c11
<         "(%g*)%(([%+%-]+)(%^-)(%w+[_%-]*%w*)%)([%\u{0027}%\u{2019}]*)(%g*)"
---
>         "(%g*)%(([%+%-]+)(%^-)(%a+[_%-]*%a*)%)([%\u{0027}%\u{2019}]*)(%g*)"
tomncooper commented 5 years ago

Thanks for the suggestion, I have pushed the change.