ruricolist/spinneret

Attributes are not wrapped with ""

diasbruno opened this issue · 6 comments

Is there an option for this?

Using

:attrs (list :alt text :src link)

produces

alt=normal text like this src=link

I can't seem to reproduce this. Can you give more context?

For reference, what I see is:

(with-html (:img :attrs (list :alt text :src link)))
=> <img alt="my text" src=link>

🤔 Is there some kind of list that controls which attributes to add the ""?
I'm looking for a way to wrap all attributes with "".

(with-html (:img :attrs (list :alt text :src link)))
=> <img alt="my text" src="https://mimimi...">

So to be clear, you want a configuration option that forces all attributes to be quoted? That would be easy to add.

Yep. *always-quote* would be ok? I think I can make a PR for it.