mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-10 01:14:17 +01:00
feat(markdown): add LaTeX math support
This commit is contained in:
1 parent
f7a8a60440
commit
9c796a873c
11 files changed
+1592
-1464
No files matched your search
@@ -5,9 +5,12 @@ import type { PDFData, SocketData, MultiPDFData } from '../types';
|
||||
import { loadPyMuPDF } from '../../utils/pymupdf-loader.js';
|
||||
import MarkdownIt from 'markdown-it';
|
||||
import { loadPdfDocument } from '../../utils/load-pdf-document.js';
|
||||
import { useMarkdownPlugins } from '../../utils/markdown-plugins.js';
|
||||
import { wfError } from '../errors';
|
||||
|
||||
const md = new MarkdownIt({ html: true, linkify: true, typographer: true });
|
||||
const md = useMarkdownPlugins(
|
||||
new MarkdownIt({ html: true, linkify: true, typographer: true })
|
||||
);
|
||||
|
||||
export class MarkdownToPdfNode extends BaseWorkflowNode {
|
||||
readonly category = 'Input' as const;
|
||||
|
||||
Reference in new issue
Block a user