feat: markdown parser for links and lists

This commit is contained in:
Jannat Patel
2024-12-16 16:41:55 +05:30
parent d88aaedf3f
commit 7f44177986
6 changed files with 131 additions and 119 deletions

View File

@@ -13,8 +13,6 @@ import dayjs from '@/utils/dayjs'
import Embed from '@editorjs/embed'
import SimpleImage from '@editorjs/simple-image'
import Table from '@editorjs/table'
import MDParser from 'editorjs-md-parser'
import MDImporter from 'editorjs-md-parser'
export function createToast(options) {
toast({
@@ -150,7 +148,12 @@ export function htmlToText(html) {
export function getEditorTools() {
return {
header: Header,
header: {
class: Header,
config: {
placeholder: 'Header',
},
},
quiz: Quiz,
upload: Upload,
markdownParser: MarkdownParser,
@@ -184,7 +187,7 @@ export function getEditorTools() {
},
embed: {
class: Embed,
inlineToolbar: false,
inlineToolbar: true,
config: {
services: {
youtube: {