I’ve been trying to figure out how to piggy back off of the code markdown plug & extend/replace some of the rendering features (I want to justify tables using the standard :-:
, :-
syntax).
I’ve followed that the general steps are:
- the syscall
markdown.markdownToHtml
gets made - the core markdown plug listens to that with the plug yaml:
markdownToHtml:
path: api.ts:markdownToHtml
syscall: markdown.markdownToHtml
markdownToHtml
callsparseMarkdown
andrenderMarkdownToHtml
But I just can’t seem to get even a simple console logging function to work
// tables.ts
export function testing(
markdown_string: string,
options: any
) {
console.log(markdown_string);
console.log(options);
}
testing:
path: tables.ts:testing
syscall: markdown.markdownToHtml
There’s something obvious I’m missing here, but I have no clue what it is