Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
types(markdown): add typing
  • Loading branch information
antonreshetov committed Jul 7, 2022
commit 50cb59bb321db711eda4902af54a71e9cd7e403b
2 changes: 1 addition & 1 deletion src/renderer/components/markdown/TheMarkdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const snippetStore = useSnippetStore()
const forceRefresh = ref()

const init = () => {
const renderer = {
const renderer: marked.RendererObject = {
code (code: string, lang: string) {
if (lang === 'mermaid') {
return `<div class="mermaid">${code}</div><br>`
Expand Down