mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 20:01:10 +10:00
* 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
13 lines
242 B
TypeScript
13 lines
242 B
TypeScript
import { ExportFormat } from './dto/export-dto';
|
|
|
|
export function getExportExtension(format: string) {
|
|
if (format === ExportFormat.HTML) {
|
|
return '.html';
|
|
}
|
|
|
|
if (format === ExportFormat.Markdown) {
|
|
return '.md';
|
|
}
|
|
return;
|
|
}
|