Update pattern used to remove MathJaX script injected by asciidoctor

This commit is contained in:
Jon Leech 2018-11-04 02:05:08 -08:00
parent e24e42dcff
commit a453c9837b

View File

@ -19,7 +19,7 @@ include ::Asciidoctor
class ReplaceMathjaxWithKatex < Extensions::Postprocessor
MathJaXScript = /<script type="text\/x-mathjax-config">((?!<\/script>).)+<\/script>/m
MathJaXCDN = '<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.6.0/MathJax.js?config=TeX-MML-AM_HTMLorMML"></script>'
MathJaXCDN = /<script src="https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mathjax\/[0-9].[0-9].[0-9]\/MathJax.js\?config=[-_A-Za-z]+"><\/script>/m
def process document, output