result = result->substitute(' \@<! \=\n', ' ', 'g')
# change hard line breaks
result = result->substitute(' \{2,}\n', '\n', 'g')
+ # replace non-breaking spaces with spaces
+ result = result->substitute(' ', ' ', 'g')
return result->substitute($'\\\({punctuation}\)', '\1', 'g')
enddef
[],
[{'col': 13, 'type': 'LspMarkdownCode', 'length': 15}]
]
- ]
+ ],
+ [
+ # non-breaking space characters
+ # Input text
+ [
+ ' This is text.',
+ ],
+ # Expected text
+ [
+ ' This is text.',
+ ],
+ # Expected text properties
+ [
+ []
+ ]
+ ],
]
var doc: dict<list<any>>