From 3c7bd6133f206cd663320f343ec69037ee8c6dd3 Mon Sep 17 00:00:00 2001 From: Stephan Hradek Date: Mon, 6 Jun 2022 08:35:48 +0200 Subject: [PATCH] allow templates and macros to include blanks in path (#191) --- pkg/mark/includes/templates.go | 2 +- pkg/mark/macro/macro.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mark/includes/templates.go b/pkg/mark/includes/templates.go index 06aada8..287ab89 100644 --- a/pkg/mark/includes/templates.go +++ b/pkg/mark/includes/templates.go @@ -18,7 +18,7 @@ import ( // var reIncludeDirective = regexp.MustCompile( - `(?s)`) + `(?s)`) func LoadTemplate( base string, diff --git a/pkg/mark/macro/macro.go b/pkg/mark/macro/macro.go index a88fc47..48e37c3 100644 --- a/pkg/mark/macro/macro.go +++ b/pkg/mark/macro/macro.go @@ -21,7 +21,7 @@ var reMacroDirective = regexp.MustCompile( `(?s)` + // dot capture newlines /**/ ``, )