You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we use the include helper, we are often forced to have extra whitespace (even when using <%= include '...' %>. This can cause the Markdown to be rendered incorrectly, such as when building a list with includes as the values.
The normal Mojolicious syntax of using an = on the closing tag to trim whitespace works, but it trims all whitespace before and after, making Markdown render even more incorrectly.
We should try to do the right thing when including templates and not introduce any unexpected whitespace. If that's not possible, we should introduce a trim helper function that will at least trim whitespace around the include (while still allowing whitespace around the template directive itself), like <%= trim include '...' %>
The text was updated successfully, but these errors were encountered:
When we use the
include
helper, we are often forced to have extra whitespace (even when using<%= include '...' %>
. This can cause the Markdown to be rendered incorrectly, such as when building a list with includes as the values.The normal Mojolicious syntax of using an
=
on the closing tag to trim whitespace works, but it trims all whitespace before and after, making Markdown render even more incorrectly.We should try to do the right thing when including templates and not introduce any unexpected whitespace. If that's not possible, we should introduce a
trim
helper function that will at least trim whitespace around the include (while still allowing whitespace around the template directive itself), like<%= trim include '...' %>
The text was updated successfully, but these errors were encountered: