diff options
author | Andreas Eliasson <andreas.eliasson@qt.io> | 2023-02-15 12:32:06 +0100 |
---|---|---|
committer | Andreas Eliasson <andreas.eliasson@qt.io> | 2023-02-27 23:21:17 +0100 |
commit | 571d47367c69ae4844a2c1079fbca9108cf284db (patch) | |
tree | 47afe6337a50d6614221bc960ba5133611eb0af8 /examples | |
parent | 1a291c5579122e520af1a2cec263ebd12dcd2407 (diff) | |
download | qtwebengine-571d47367c69ae4844a2c1079fbca9108cf284db.tar.gz |
Doc: Fix example code
Use the .parse() method from the marked.js third party library.
https://marked.js.org/
Fixes: QTWEBSITE-1083
Pick-to: 6.5 6.4 6.2
Change-Id: I59bcf14ce7169570a234169c6b48f720271c1e72
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webenginewidgets/markdowneditor/resources/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/webenginewidgets/markdowneditor/resources/index.html b/examples/webenginewidgets/markdowneditor/resources/index.html index 289a2110b..c8e30b49b 100644 --- a/examples/webenginewidgets/markdowneditor/resources/index.html +++ b/examples/webenginewidgets/markdowneditor/resources/index.html @@ -14,7 +14,7 @@ var placeholder = document.getElementById('placeholder'); var updateText = function(text) { - placeholder.innerHTML = marked(text); + placeholder.innerHTML = marked.parse(text); } new QWebChannel(qt.webChannelTransport, |