From e06cce16b73feddb8e41d6a7f90899267077baff Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 Apr 2024 15:30:32 +0200 Subject: add make targets lint lint-markdown --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1ceadaf..f1fdf60 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,8 @@ ARTICLES = learn code use worlding PERL_FILES = bin/hedgedoc2quarto bin/xmp2rdfxml +TIDY_MARKDOWN = worlding + export HEDGEDOC_COOKIES_FILE = $(CURDIR)/cookies.txt export HEDGEDOC_SERVER = https://pad.degrowth.net/ @@ -76,6 +78,11 @@ $(ARTICLES:%=pad-import-%): pad-import-%: pad-import-ref: hedgedoc import ref.bib +lint: lint-markdown + +lint-markdown: + mdl --ignore-front-matter --style .mdl.rb $(addsuffix /*.qmd,$(TIDY_MARKDOWN)) + tidy: tidy-bibtex tidy-perl tidy-bibtex: -- cgit v1.2.3