[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [dita-lightweight-dita] Notes on lists, tight and loose, and @compact attribute
Thanks a lot, Mark! I brought forward this topic to the TC. Regarding the use of @compact in DITA, it’s still defined in DITA 2.0 and will stay there. The most prominent reasons
are its function for controlling formatting as well as the fact that it is established and widely used. See the TC minutes for an excerpt of the discussion:
https://lists.oasis-open.org/archives/dita/202309/msg00016.html f. From: dita-lightweight-dita@lists.oasis-open.org <dita-lightweight-dita@lists.oasis-open.org>
On Behalf Of Mark Giffin Executive Summary
Still to be decided:
Background Info
This subcommittee discussion came up because of the following DITA OT bug, which applies only to MDITA and Markdown, not XML DITA: Summary of Bug 175
In the original Markdown, to make HTML output list spacing tight, you would put carriage return between list items. To give the HTML output looser spacing, you'd put a carriage return between list items. This idea was carried over into
the CommonMark Markdown standard, which MDITA is based on. Here is the CommonMark spec on this subject: The @compact Attribute Was Removed in HTML5
In HTML5, the @compact attribute has been removed. It was deprecated in HTML 4, 20 years ago. Modern popular browsers do not support @compact, they ignore it. It can be replaced with CSS.
DITA 1.3 Still Supports @compact
DITA 1.3 @compact attribute in the spec:
DITA Open Toolkit Support for @compact
DITA 1.3 XML content using @compact: <ul class="ul" compact="compact"> <li class="li">one</li> But since @compact is archaic HTML syntax, it is unsupported by modern browsers. You could probably make a CSS class that operated on @compact, but why bother. Use HTML @class.
That's it.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]