CommonMark doesn't require implementations to remove non-ASCII white spaces (just says "space", which means U+0020).
However, markdown-it removes them.
This is due to the fact markdown-it and prior CommonMark.js uses .tirm() to remove leading/trailing space-like characters, including non-ASCII ones.
The specification of .trim(): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim
CommonMark doesn't require implementations to remove non-ASCII white spaces (just says "space", which means U+0020).
However, markdown-it removes them.
This is due to the fact markdown-it and prior CommonMark.js uses
.tirm()to remove leading/trailing space-like characters, including non-ASCII ones.The specification of
.trim(): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim