mirror of
https://github.com/docmost/docmost.git
synced 2026-05-14 04:24:04 +08: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:
@@ -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