Utilities for working with MDX
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
plexigras opened this issue 6 years ago · comments
with a default wrapper factory this could be simplified
https://github.com/jamesknelson/mdxc/blob/3f05f56c3e8ddc0a32b72bfa65d6f28e0ee6535b/source/mdxc.js#L154-L158
to this
` const { ${['wrapper'].concat(tags).map(tag => ` ${tag} = ${this.getFactoryForTag(tag)},` ).join('\n')} } = factories`