How to prevent newlines from creating par breaks

Hello, my question is pretty simple but I couldn’t find a answer easily. How do you prevent newlines in typst source code from creating paragraph breaks automatically? I want to avoid or override the behaviour discussed here Paragraph Break Function – Typst Documentation.

Hello @SirJoe! Welcome :smiley:!

technically speaking, all you need is

#show parbreak: none

Unfortunately, that would remove many features and you would have to rely on linebreak.

中文测试

中文
测试

abcd

ab
cd

#show parbreak: none
abcd\
ab
cd

image

this is tracked in [1], [2] is also related.

[1] Customizing source line break behavior · Issue #710 · typst/typst · GitHub
[2] Ignore linebreaks between CJK characters in source code · Issue #792 · typst/typst · GitHub