html - textile - how do I add a class to a definition list? -
i'm using redcloth convert textile text html.
one particular scenario seems particularly apt using definition lists.
with redcloth, definition lists have syntax (source):
- coffee := hot , black - tea := hot, little less black - milk := nourishing beverage baby cows. cold drink goes great cookies. =:
i want add class "beverages" list (so generated code looks <dl class="beverages">...
). i've tried this:
(beverages)- coffee := hot , black ...
i tried:
-(beverage) coffee := hot , black -(beverage) tea := hot, little less black ...
this way style other lists (ul
s , ol
s) in textile, didn't work dl
s. text rendered literal paragraph (<p>-(beverage) coffee := hot , black</p>
)
is there syntax adding classes definition lists in textile, or must use raw html instead?
the old - :- syntax not allow adding classes/ids, following work:
;(defclass#defid) lorem : lorem ipsum dolor sit amet
will produce
<dl class="defclass" id="defid"> <dt>lorem</dt> <dd>lorem ipsum dolor sit amet</dd> </dl>
Comments
Post a Comment