Multiline Attributes without using delimiters
dsynkd opened this issue · 2 comments
dsynkd commented
I am looking to write my code as such:
html
head
link
rel="stylesheet"
href="http://link-to-css"
Is this currently possible using attr_list_delims
? If not, is this something that would be open to implementation? My logic is that, if a token on a newline is immediately followed by =
symbol, it can be recognized as an attribute of the element above it.
halo commented
To my knowledge these versions work fine:
html
head
link[rel="stylesheet"
href="http://link-to-css"]
link[
rel="stylesheet"
href="http://link-to-css"
]
Would that solve your problem?
Your solution will probably not work given this example:
html
head
p
strong="I am strong"
emph="I am italic"
With your logic, this would not render <p><strong>
but <p strong="..."
instead.
minad commented
Should be resolved by #874 (comment).