Add import cleanup to fix Gutenberg's crazy URL scheme

parent 0b6de5e8
......@@ -18,3 +18,7 @@ $(BOOKBASE).yml: $(LANGUAGE)/$(CCMBOOKCODE).yml
$(BOOKBASE).md: $(LANGUAGE)/$(CCMBOOKCODE).md
cp $< $@
.PHONY: cleanup_gutenberg
cleanup_gutenberg: $(filter en/%,$(MARKDOWNSOURCES))
$(call munge,$^,$(PERL) $(PERLARGS) -i -pne 's!\[\]\{#[^#]+#Page_(\d+) \.x-ebookmaker-pageno\}![]{#page_\1 .print}!g',Fix Gutenberg ebook page number anchors)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment