md4c icon indicating copy to clipboard operation
md4c copied to clipboard

Fix md_decode_utf16le_before__() return value

Open MakotoE opened this issue 1 year ago • 1 comments

I believe md_decode_utf16le_before__() returns the wrong value. The function is supposed to return the character before the offset. We can compare with the utf8 version md_decode_utf8_before__() which returns CH(off-1).

Closes https://github.com/mity/md4c/issues/275

MakotoE avatar Aug 21 '24 21:08 MakotoE

Test case that this PR fixes: **text**abc Expected results: text to be in bold

s77rt avatar Feb 15 '25 13:02 s77rt