No parameter.
Replace Markdown markup found all the text nodes of explicitly or implicitly selected element by equivalent XML elements. Supported Markdown markup: italic, bold, bold and italic, code, strikethrough, highlight, subscript, superscript, link, image, heading, unordered list item, ordered list item.
A property
in XMLmind XML Editor - Configuration and Deployment configuration element having a "
" configuration_name
markdownMappingname
attribute must be specified in order to map Markdown markup to equivalent XML elements. Syntax:
specifications -> specification [ NEW_LINE specification ]*specification -> paragraph_names | mapping paragraph_names
-> 'paragraph' S '=' element_name
[ S element_name ]+ mapping -> markup S '=' S element [ '/' element ]*
markup -> 'italic' | 'bold' | 'boldItalic' | 'code' | 'strikethrough' | 'highlight' | 'subscript' |'superscript' | 'link' | 'internalLink'
| 'image' | 'heading1' | 'heading2' | 'heading3' | 'heading4' |'heading5' | 'heading6' | 'listItem' | 'orderedListItem' element -> element_name [ '[' attribute ']' ]?
attribute -> attribute_name S '=' S [ '"'|"'" ]? attribute_value [ '"'|"'" ]?
Open lines and line starting with | |||||||
| |||||||
Element and attribute names are specified using the so-called James Clark's notation. Examples: | |||||||
A Markdown markup may be mapped not only to a single element but also to an element tree. DocBook 4 example: " | |||||||
link=ulink[url="${href}"] internalLink=link[linkend="${href.fragment}"]". | |||||||
A Markdown markup may be mapped to an element having one or more attributes.DocBook 4 example: " Some of these attributes may contain substituted variables like
Note that empty attributes are not added to the element replacing the Markdown markup. XHTML example: link={http://www.w3.org/1999/xhtml}a[href="${href}" title="${title}"] " |
<property name="$c markdownMapping"> italic=emphasis bold=emphasis[role="bold"] code=literal highlight=emphasis[role="underline"] subscript=subscript superscript=superscript link=ulink[url="${href}"] internalLink=link[linkend="${href.fragment}"] image=inlinemediaobject/imageobject/imagedata[fileref="${src}"] paragraph=para simpara heading1=bridgehead[renderas=sect1] heading2=bridgehead[renderas=sect2] heading3=bridgehead[renderas=sect3] heading4=bridgehead[renderas=sect4] heading5=bridgehead[renderas=sect5] listItem=itemizedlist[spacing=compact]/listitem/para orderedListItem=orderedlist[spacing=compact]/listitem/para </property>
<property name="$c markdownMapping"> italic={http://www.w3.org/1999/xhtml}em bold={http://www.w3.org/1999/xhtml}strong boldItalic={http://www.w3.org/1999/xhtml}strong/¬ {http://www.w3.org/1999/xhtml}em code={http://www.w3.org/1999/xhtml}code strikethrough={http://www.w3.org/1999/xhtml}del highlight={http://www.w3.org/1999/xhtml}mark subscript={http://www.w3.org/1999/xhtml}sub superscript={http://www.w3.org/1999/xhtml}sup link={http://www.w3.org/1999/xhtml}a[href="${href}" title="${title}"] image={http://www.w3.org/1999/xhtml}img[src="${src}" alt="${alt}"¬ title="${title}"] paragraph={http://www.w3.org/1999/xhtml}p heading1={http://www.w3.org/1999/xhtml}h1 heading2={http://www.w3.org/1999/xhtml}h2 heading3={http://www.w3.org/1999/xhtml}h3 heading4={http://www.w3.org/1999/xhtml}h4 heading5={http://www.w3.org/1999/xhtml}h5 heading6={http://www.w3.org/1999/xhtml}h6 listItem={http://www.w3.org/1999/xhtml}ul/¬ {http://www.w3.org/1999/xhtml}li orderedListItem={http://www.w3.org/1999/xhtml}ol/¬ {http://www.w3.org/1999/xhtml}li </property>