Nevenall / remark-terms

Remark plugin to add parsing of single and double curly braces to mark special terms.
MIT License
5 stars 2 forks source link

Add `name` entry in config #3

Closed Ayc0 closed 4 years ago

Ayc0 commented 5 years ago

allow to add a name instead of term_<i>

Useful for other tools like react-markdown

Misc

remove nested blocks

instead of

if (condition) {
  // code
}

I used

if (!condition) {
  return
}
// code

which reduces the indentation

apply formatting with prettier

it's a side effect, I have prettier on my IDE

Nevenall commented 4 years ago

Thanks for the PR! Sounds like a fine feature. I need to fix some bugs anyway so I'll work it into the next release.

Nevenall commented 4 years ago

Just published version 2.1.1 with the name option, improved tests, and better handling of nested terms.