Mix text and markup with smart newline handling
mainThe plugin manages whitespace when mixing text with inline tags (like a or strong).
- Trailing Newline Suppression: A newline before a tag is suppressed if the preceding line ends with a character in
:smart_text_end_chars(default:([{). - Leading Newline Suppression: A newline after a tag is suppressed if the following line begins with a character in
:smart_text_begin_chars(default:,.;:!?)]}).
Use the > indicator to distinguish lowercase text from tags when mixing them.
# Natural mixing with punctuation
p
Please proceed to
a href="/" our homepage
.
p
Status: failed (
a href="#1" see details
).
# Mixing text and tags
p
Your credit card
strong will not
> be charged now.