Skip to main content

markdown

Example

 <markdown
content="{{content}}"
bind:taplink="onTapLink"
>
</markdown>
Page({
data: {
content: '## Hello World\n\nThis is a markdown editor\n**bold**\n*italic*\n\n[link: tiptap-markdown](https://github.com/aguingand/tiptap-markdown)\n\n[deeplink](bnc://app.binance.com/mp/app?appId=bqpqWKnedCqoZ3wVcx4z98)\n![](https://public.bnbstatic.com/static/images/common/ogImage.jpg)',
editorStyle: "height: calc(100% - 50px)",
},
onLoad() {

},
onTapLink(e) {
console.log('onTapLink ===>', e)
}
})
  • remark - sdk >= 4.35.0

Props

NameTypeDescription
contentstring 

Events

NameDescription
bindtaplinkwhen the link has clicked, taplink will be emitted