This page gathers the documentation about the HTML variants syntaxes and their specificities.

Annotated XHTML

This syntax puts supplementary information in the rendered XHTML in order to be used by the CKEditor.

Metadata Annotation

Metadata provided in the page structure (XDOM) are now output when using the Annotated XHTML renderer, using the following rules:

  • it produces a container with the class xwiki-metadata-container
  • the container is a div or a span depending if the metadata is an inline context or not
  • all metadata are provided in dedicated attribute named on the schema data-xwiki-key where key is the metadata name.

Then the following XDOM: 

beginDocument
beginMetaData [[syntax]=[xwiki/2.0]]
beginParagraph
onWord [Heading]
endParagraph
endMetaData [[syntax]=[xwiki/2.0]]
endDocument

will be interpreted like this:

<div class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0">
 <span>Heading</span>
</div>

Macro Annotation

 

 TODO 

Annotated HTML5

TODO
Tags:
Created by Simon Urli on 2018/10/12 12:06
    
  • Powered by XWiki 8.4.4-node1. Hosted and managed by XWiki SAS

Get Connected