fix(core): update
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartmarkdown',
|
||||
version: '3.0.0',
|
||||
version: '3.0.1',
|
||||
description: 'do more with markdown files'
|
||||
}
|
||||
|
@@ -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