commit bb6611fc24f89074f586dc2c23bc1f004b055178
parent 72a0de0e71adfd909298280378863f0b21944c58
Author: Hunter
Date:   Thu, 15 Jan 2026 12:24:37 -0500

include doctype declaration when replacing <!>

Diffstat:
MREADME.md | 1+
Mmain.js | 3++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -37,6 +37,7 @@ Alternatively, if you know the name of the image you'd like to use, you can add Type `<!>` to insert the following starter HTML: ```html +<!DOCTYPE html> <html> <head> <style> diff --git a/main.js b/main.js @@ -426,7 +426,8 @@ function initializeCodeMirror() { const before = view.state.doc.sliceString(Math.max(0, from - 20), from); // Check for <!> boilerplate trigger if (before.endsWith('<!')) { - const boilerplate = `<html> + const boilerplate = `<!DOCTYPE html> +<html> \t<head> \t\t<style> \t\t\t