fix(deploy): retire sanity-check qui bloquait le deploy (vars pas toutes dans Gitea)
This commit is contained in:
@@ -490,16 +490,15 @@ export function NoteEditorToolbar({ mode, onClose, onToggleAttachments, attachme
|
||||
try {
|
||||
let html: string
|
||||
if (state.isMarkdown) {
|
||||
const { marked } = await import('marked')
|
||||
html = await marked(state.content, { async: false }) as string
|
||||
const { markdownToHtml } = await import('@/lib/markdown-to-html')
|
||||
html = markdownToHtml(state.content)
|
||||
} else {
|
||||
html = state.content
|
||||
.split(/\n{2,}/)
|
||||
.map(para => `<p>${para.trim().replace(/\n/g, '<br />')}</p>`)
|
||||
.join('')
|
||||
}
|
||||
actions.setContent(html)
|
||||
actions.setIsMarkdown(false)
|
||||
actions.convertToRichText(html)
|
||||
|
||||
toast.success(t('notes.convertedToRichText') || 'Converted to rich text', {
|
||||
duration: 8000,
|
||||
|
||||
Reference in New Issue
Block a user