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',
editorStyle: "height: calc(100% - 50px)",
},
onLoad() {
},
onTapLink(e) {
console.log('onTapLink ===>', e)
}
})
- remark - sdk >= 4.35.0
Props
Name | Type | Description |
---|---|---|
content | string |
Events
Name | Description |
---|---|
bindtaplink | when the link has clicked, taplink will be emitted |