You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a (class-name) to the first item of a definition list, the HTML output is not consistent depending on the notation you use. The semicolon/colon notation places the classname on the containing dl element. The dash-colon-equals notation places the class name on the first dt element.
Expected behaviour
Consistent behaviour regardless of definition list notation used: the class should in my view be applied to the containing dl tag so that one can style the entire definition list. Currently using -Term := Definition notation you can only style the first dt.
Actual behaviour
See above
Additional information
PHP-Textile version: 3.7.6
PHP version: 8.1
Steps to reproduce
Try inserting the following into the textarea at textile-lang.com:
;(class-name) HTML
: HyperText Markup Language, based on SGML.
; XHTML
: HTML 4.0 rewritten to be compliant with XML rules.
; HTML5
: The latest revision of the HTML standard.
: Still under development.
-(class-name) HTML := HyperText Markup Language, based on SGML.
- XHTML := HTML 4.0 rewritten to be compliant with XML rules.
- HTML5 := The latest revision of the HTML standard
Still under development =:
The first ;(class-name) HTML produces what I think is correct output:
gocom
changed the title
Definition lists: classes applied differently to dl / first dt depending on notation used
Change where classes and other attributes are added in RedCloth definition lists
May 3, 2022
Oh, you are right. I didn't realise that is the current behaviour of the Redcloth syntax. Thanks for the clarification. And I think your suggestion of adding it to the next major version is good.
When adding a
(class-name)
to the first item of a definition list, the HTML output is not consistent depending on the notation you use. The semicolon/colon notation places the classname on the containingdl
element. The dash-colon-equals notation places the class name on the firstdt
element.Expected behaviour
Consistent behaviour regardless of definition list notation used: the class should in my view be applied to the containing
dl
tag so that one can style the entire definition list. Currently using-Term := Definition
notation you can only style the firstdt
.Actual behaviour
See above
Additional information
PHP-Textile version: 3.7.6
PHP version: 8.1
Steps to reproduce
Try inserting the following into the textarea at textile-lang.com:
The first
;(class-name) HTML
produces what I think is correct output:while the second
-(class-name) HTML := …
producesThe text was updated successfully, but these errors were encountered: