We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
text_templates
1 parent 4a9fb59 commit 5f11075Copy full SHA for 5f11075
src/components/Suggestion/LinkPicker/suggestions.js
@@ -93,10 +93,15 @@ export default () => createSuggestions({
93
}
94
getLinkWithPicker(props.providerId, true)
95
.then(link => {
96
- let content = link
97
-
98
- if (hasMarkdownSyntax(content) && isValidMarkdown(content)) {
99
- content = markdownit.render(content)
+ if (hasMarkdownSyntax(link) && isValidMarkdown(link)) {
+ // Insert markdown content (e.g. from `text_templates` app)
+ const content = markdownit.render(link)
+ editor
100
+ .chain()
101
+ .focus()
102
+ .insertContentAt(range, content + ' ')
103
+ .run()
104
+ return
105
106
107
editor
0 commit comments