Skip to content

Commit

Permalink
fix strange behavior, bump marked.js version up
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss authored and dead-claudia committed Jul 31, 2023
1 parent 03fabe5 commit 1a12c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</head>
<body>
<div id="editor"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.6.0/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/5.0.2/marked.min.js"></script>
<script src="../../mithril.js"></script>
<script>
//model
Expand All @@ -31,7 +31,7 @@
oninput: function (e) { state.update(e.target.value) },
value: state.text
}),
m(".preview", m.trust(marked(state.text))),
m(".preview", m.trust(marked.parse(state.text))),
]
}
}
Expand Down

0 comments on commit 1a12c67

Please sign in to comment.