mirror of
https://github.com/docmost/docmost.git
synced 2025-11-21 01:51:08 +10:00
feat: Individual page export in Markdown and HTML formats (#80)
* fix maths node * render default html width * Add page export module * with support for html and markdown exports * Page export UI * Add PDF print too * remove unused import
This commit is contained in:
12
apps/server/src/integrations/export/utils.ts
Normal file
12
apps/server/src/integrations/export/utils.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { ExportFormat } from './dto/export-dto';
|
||||
|
||||
export function getExportExtension(format: string) {
|
||||
if (format === ExportFormat.HTML) {
|
||||
return '.html';
|
||||
}
|
||||
|
||||
if (format === ExportFormat.Markdown) {
|
||||
return '.md';
|
||||
}
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user