fix(core): update
This commit is contained in:
@@ -2,6 +2,12 @@ import * as plugins from './smartmarkdown.plugins.js';
|
||||
import { MdParsedResult } from './smartmarkdown.classes.mdparsedresult.js';
|
||||
|
||||
export class SmartMarkdown {
|
||||
public static async easyMarkdownToHtml(mdStringArg: string) {
|
||||
const smartmarkdownInstance = new SmartMarkdown();
|
||||
const mdParsedResult = await smartmarkdownInstance.getMdParsedResultFromMarkdown(mdStringArg);
|
||||
return mdParsedResult.html;
|
||||
}
|
||||
|
||||
constructor() {}
|
||||
|
||||
/**
|
||||
@@ -11,7 +17,7 @@ export class SmartMarkdown {
|
||||
public async getMdParsedResultFromMarkdown(mdStringArg: string): Promise<MdParsedResult> {
|
||||
const result = await MdParsedResult.createFromMarkdownString(mdStringArg);
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
public htmlToMarkdown(htmlString: string): string {
|
||||
const turndownInstance = new plugins.turndown({
|
||||
|
||||
Reference in New Issue
Block a user