|
From: Günter M. <mi...@us...> - 2026-11-12 12:38:37
|
- **Group**: --> Default - **Priority**: 5 --> 3 --- **[feature-requests:#21] Add :valueasclass: option to role directive** **Status:** open **Group:** Default **Created:** Sun Mar 14, 2010 03:31 PM UTC by Jeffrey C. Jacobs **Last Updated:** Mon Jun 30, 2014 10:21 PM UTC **Owner:** nobody It would be nice, for the purposes of a more flexible form of indexing such that all text adorned with a role that had this property would, in addition to its standard role classes, receive a class of the form role<text> in it's class list. This would allow for easy dynamic HTML using CSS for any such text markup. In other words: .. role:: keyword :valueasclass: If you remember :keyword:\`apple\` or :keyword:\`pear\`, you're almost there\! This would render similar to: The output would be <paragraph> If you remember <keyword class='roleapple'> apple or <keyword class='rolepear'> , you're almost there\! Where further CSS could highlight text of class roleapple or rolepear as necessary. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |