From 6700fd992e907061a6c5136c79504acbc0b3a7f7 Mon Sep 17 00:00:00 2001 From: Brad Nelson Date: Wed, 14 Feb 2018 09:52:19 -0800 Subject: [PATCH] Fixing sidebar in bikeshed version of the spec. (#688) --- document/core/Makefile | 1 - document/core/util/mathjax2katex.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/document/core/Makefile b/document/core/Makefile index 90cd7ae0ea..67ce899442 100644 --- a/document/core/Makefile +++ b/document/core/Makefile @@ -126,7 +126,6 @@ bikeshed: $(SPHINXBUILD) -b singlehtml -c util/bikeshed \ $(ALLSPHINXOPTS) $(BUILDDIR)/bikeshed_singlehtml mkdir -p $(BUILDDIR)/bikeshed_mathjax/ - cp index.bs $(BUILDDIR)/bikeshed_mathjax/ bikeshed spec index.bs $(BUILDDIR)/bikeshed_mathjax/index.html mkdir -p $(BUILDDIR)/html/bikeshed/ python util/mathjax2katex.py $(BUILDDIR)/bikeshed_mathjax/index.html \ diff --git a/document/core/util/mathjax2katex.py b/document/core/util/mathjax2katex.py index ae2bab5e95..063667f006 100755 --- a/document/core/util/mathjax2katex.py +++ b/document/core/util/mathjax2katex.py @@ -137,8 +137,8 @@ def ExtractMath(match): # Bad duplicate meta. data = ''.join(data.rsplit( '', 1)) - # Drop all scripts. - data = re.sub(']*>[^<]*', '', data) + # Drop several scripts. + data = re.sub(']*text/javascript[^>]*>[^<]*', '', data) data = data.replace( '\n', '\n') # Drop duplicate title.