Fix go parser

This commit is contained in:
Thomas Kosmas 2024-10-31 17:36:32 +02:00
parent 2ae2931b75
commit ae919ad896
5 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class GoMarkdownConverter {
private convert: any;
private constructor() {
const goExecutablePath = join(__dirname, 'go-html-to-md/html-to-markdown.so');
const goExecutablePath = join(process.cwd(), 'sharedLibs', 'go-html-to-md', 'html-to-markdown.so');
const lib = koffi.load(goExecutablePath);
this.convert = lib.func('ConvertHTMLToMarkdown', 'string', ['string']);
}