feat: slash menu navigation, removed gutter button, fixed AI richtext format, added image resize
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 44s

This commit is contained in:
2026-05-02 23:31:40 +02:00
parent 6d6e12ba05
commit e4ca7ba497
4 changed files with 107 additions and 52 deletions

View File

@@ -17,7 +17,7 @@ export async function POST(request: NextRequest) {
return NextResponse.json({ error: 'Feature disabled' }, { status: 403 })
}
const { text, option } = await request.json()
const { text, option, format } = await request.json()
// Validation
if (!text || typeof text !== 'string') {
@@ -50,7 +50,7 @@ export async function POST(request: NextRequest) {
}
// Use the ParagraphRefactorService
const result = await paragraphRefactorService.refactor(text, mode)
const result = await paragraphRefactorService.refactor(text, mode, format === 'html' ? 'html' : 'markdown')
return NextResponse.json({
originalText: result.original,