From 4acce95769065fb89593689b2688a3dd8b711391 Mon Sep 17 00:00:00 2001
From: diwangs <27280516+diwangs@users.noreply.github.com>
Date: Tue, 11 Mar 2025 17:24:17 -0400
Subject: [PATCH] Change default html rendering behavior to align with
markdown-it
---
README.md | 2 +-
src/VueMarkdown.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 6339ea3..6298881 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,7 @@ TIP: The default slot only renders **once** at the beginning, and it will overwr
| watches | Array | `["source", "show", "toc"]` | HTML refresh automatically when the prop in this array changed |
| source | String | `null` | the markdown source code |
| show | Boolean | `true` | enable render to the default slot automatically |
-| html | Boolean | `true` | enable HTML syntax in source |
+| html | Boolean | `false` | enable HTML syntax in source |
| xhtml-out | Boolean | `true` | `
` => `
` |
| breaks | Boolean | `true` | `\n` => `
` |
| linkify | Boolean | `true` | autoconvert URL-like text to link |
diff --git a/src/VueMarkdown.js b/src/VueMarkdown.js
index 16ec570..a83ad54 100644
--- a/src/VueMarkdown.js
+++ b/src/VueMarkdown.js
@@ -41,7 +41,7 @@ export default {
},
html: {
type: Boolean,
- default: true,
+ default: false,
},
xhtmlOut: {
type: Boolean,