runarberg / markdown-it-math

Markdown-it plugin to include math in your document
MIT License
41 stars 18 forks source link

```math as delimiter #23

Open Lesik opened 5 years ago

Lesik commented 5 years ago

Hey there,

while $ is definitely the more LaTeX way of delimiting math, I find the ```math way much more markdowny. Is there any way to make it work with markdown-it-math? I already tried the following with no luck:

this.md.use(markdownItMath, {
    inlineOpen: '`',
    inlineClose: '`',
    blockOpen: '```math',
    blockClose: '```',
});
runarberg commented 5 years ago

I'm sorry to say but I've not been really active maintaining this project. The problem might be on which order this plugin is loaded relative to the code block rules.

@Lesik You are welcome to try a PR at this your self and I will merge it. But I don’t think I will make a pass at this my self in the foreseeable future :slightly_frowning_face: