1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

strip markdown syntax for title

This commit is contained in:
Dick Choi
2016-09-09 14:16:47 +09:00
parent 27e0252ccd
commit a4160d2994
3 changed files with 40 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ export default class MarkdownPreview extends React.Component {
`
this.refs.root.contentWindow.document.body.setAttribute('data-theme', theme)
this.refs.root.contentWindow.document.body.innerHTML = markdown(value)
this.refs.root.contentWindow.document.body.innerHTML = markdown.render(value)
Array.prototype.forEach.call(this.refs.root.contentWindow.document.querySelectorAll('a'), (el) => {
el.addEventListener('click', this.anchorClickHandler)