These are chat archives for wooorm/remark

2nd
Sep 2017
Wang Shidong
@wsdjeg
Sep 02 2017 12:49

@wooorm after format md file, the chinese table looks unindented:

2017-09-02_811x386

but as you can see , the english works well.
I think it is due to how remark get the length of item in the table
Wang Shidong
@wsdjeg
Sep 02 2017 13:13
does javsscript has build func to get the strwidth? like strwidth() in vim, or https://gist.github.com/demouth/3217440
Shawn Erquhart
@erquhart
Sep 02 2017 19:03
@wooorm I need to turn off html entity decoding for text nodes in remark-parse. Is there a way to do that?
Shawn Erquhart
@erquhart
Sep 02 2017 20:02
For example, commonmark doesn't specify any html entity encoding, so this breaks commonmark support. Wondering if I'm missing something here, though.
Shawn Erquhart
@erquhart
Sep 02 2017 23:02
Also curious if you've ever considered allowing markdown output style for things like code blocks (indent vs. fence) and bold text (* vs _) to be overriden per instance, based on a property on the node?
That would allow markdown to be parsed and stringified without undesired style transforms.