From 7d20789d4c16bf88add8f1a18978e9ccf94ae283 Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Mon, 4 Nov 2024 15:00:25 +0200 Subject: [PATCH] chore: support php tags in posthtml parser --- src/posthtml/defaultConfig.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/posthtml/defaultConfig.js b/src/posthtml/defaultConfig.js index 81e0ab9f..22ae5c24 100644 --- a/src/posthtml/defaultConfig.js +++ b/src/posthtml/defaultConfig.js @@ -1,4 +1,7 @@ export default { recognizeNoValueAttribute: true, - recognizeSelfClosing: true + recognizeSelfClosing: true, + directives: [ + { name: '?php', start: '<', end: '>' }, + ], }