Closed bernhardoj closed 2 weeks ago
cc @Skalakid
@bernhardoj I just noticed that \r\n
is not supported. That's something we should fix.
Btw did you get the parsing error on main? (without the fix)
I can't get the native example app running, keep running into error, but I get the parsing error on web,
and the markdown style is also applied in web.
On web it works fine. On native the newlines are formatted
I can finally run the examples on native by reinstalling the node_modules.
On native the newlines are formatted
I found that it's an issue on the native side itself.
Hmm, interesting I didn't caught this bug on Android, @bernhardoj can you look into this? cc @tomekzaw
For now, E/App doesn't use backgroundColor
for codeblocks so that's not an actual issue.
Another fix might be to move the start index of the codeblock to the next position so it doesn't include the newline character. This can be done on the parser/formatter side in JS.
Finally, we're working on improving the behavior of backgroundColor
for inline code and codeblocks so that the whole block has a background color.
Details
The new expensify-common includes the codefence newline as the content/children, so we don't need to append the newline manually anymore.
Related Issues
https://github.com/Expensify/App/issues/43750
Manual Tests
Local test in live-markdown example:
\r\n
as the newlineParsing error: the processed text does not match the original Markdown input.
error.Expensify test:
Parsing error: the processed text does not match the original Markdown input.
error.