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 (uls , ols) in textile, didn't work dls. 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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -