From a22f1caf79d947ce860f9a4751c583bc90393069 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Sun, 2 Dec 2018 20:43:34 +0100 Subject: wonkily add names and so on --- src/document_tree/extra_attributes.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/document_tree/extra_attributes.rs') diff --git a/src/document_tree/extra_attributes.rs b/src/document_tree/extra_attributes.rs index 0aa40f8..1799e4f 100644 --- a/src/document_tree/extra_attributes.rs +++ b/src/document_tree/extra_attributes.rs @@ -40,8 +40,11 @@ impl_extra!(DoctestBlock { space: FixedSpace }); impl_extra!(SubstitutionDefinition { ltrim: bool, rtrim: bool }); impl_extra!(Comment { space: FixedSpace }); impl_extra!(Target { + /// External reference to a URI/URL refuri: Option, + /// References to ids attributes in other elements refid: Option, + /// Internal reference to the names attribute of another element. May resolve to either an internal or external reference. refname: Vec, anonymous: bool, }); @@ -71,9 +74,12 @@ impl_extra!(Table {}); //TODO impl_extra!(OptionArgument { delimiter: Option }); impl_extra!(Reference { - name: Option, + name: Option, //TODO: is CDATA in the DTD, so maybe no nametoken? + /// External reference to a URI/URL refuri: Option, + /// References to ids attributes in other elements refid: Option, + /// Internal reference to the names attribute of another element refname: Vec, }); impl_extra!(FootnoteReference { refid: Option, refname: Vec, auto: bool }); @@ -83,8 +89,11 @@ impl_extra!(Problematic { refid: Option }); //also have non-inline versions. Inline image is no figure child, inline target has content impl_extra!(TargetInline { + /// External reference to a URI/URL refuri: Option, + /// References to ids attributes in other elements refid: Option, + /// Internal reference to the names attribute of another element. May resolve to either an internal or external reference. refname: Vec, anonymous: bool, }); -- cgit v1.2.3