|
|
|
@ -30,13 +30,13 @@
|
|
|
|
|
<!ENTITY refimageregex '\!\[[^\]\^]+\]\[[^\[]*\]'>
|
|
|
|
|
<!ENTITY autolinkregex '<(https?|ftp):[^\">\s]+>'>
|
|
|
|
|
<!ENTITY mailtolinkregex '<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>'>
|
|
|
|
|
<!ENTITY rulerregex '\s*([\*\-_]\s?){3,}\s*'>
|
|
|
|
|
<!ENTITY rulerregex '^\s*([\*\-_]){3,}\s*$'>
|
|
|
|
|
<!-- two spaces at end of line generates linebreak -->
|
|
|
|
|
<!ENTITY linebreakregex " $">
|
|
|
|
|
<!ENTITY strikeoutregex "[~]{2}[^~].*[^~][~]{2}"> <!-- pandoc style -->
|
|
|
|
|
]>
|
|
|
|
|
|
|
|
|
|
<language name="Markdown" version="1.2" section="Markup"
|
|
|
|
|
<language name="Markdown" version="1.3" section="Markup"
|
|
|
|
|
extensions="*.text;*.md;*.mmd;*.mdwn" priority="15"
|
|
|
|
|
author="Darrin Yeager, Claes Holmerson"
|
|
|
|
|
license="GPL,BSD" >
|
|
|
|
@ -50,10 +50,10 @@
|
|
|
|
|
<RegExpr attribute="h3" String="^###\s.*[#]?$" />
|
|
|
|
|
<RegExpr attribute="h4" String="^####\s.*[#]?$" />
|
|
|
|
|
<RegExpr attribute="h5" String="^#####\s.*[#]?$" />
|
|
|
|
|
<RegExpr attribute="ruler" String="&rulerregex;" />
|
|
|
|
|
<RegExpr attribute="strongemphasis" String="&strongemphasisregex;" />
|
|
|
|
|
<RegExpr attribute="strong" String="&strongregex;" />
|
|
|
|
|
<RegExpr attribute="emphasis" String="&emphasisregex;" />
|
|
|
|
|
<RegExpr attribute="strongemphasis" String="&strongemphasisregex;" />
|
|
|
|
|
<RegExpr attribute="ruler" String="&rulerregex;" />
|
|
|
|
|
<RegExpr attribute="code" String="^([\s]{4,}|\t+).*$" />
|
|
|
|
|
<RegExpr context="bullet" String="^[\*\+\-]\s" />
|
|
|
|
|
<RegExpr context="numlist" String="^[\d]+\.\s" />
|
|
|
|
@ -102,9 +102,9 @@
|
|
|
|
|
<itemDatas>
|
|
|
|
|
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
|
|
|
|
<itemData name="common" defStyleNum="dsNormal" />
|
|
|
|
|
<itemData name="strongemphasis" defStyleNum="dsNormal" italic="true" bold="true"/>
|
|
|
|
|
<itemData name="emphasis" defStyleNum="dsNormal" italic="true" />
|
|
|
|
|
<itemData name="strong" defStyleNum="dsNormal" bold="true" />
|
|
|
|
|
<itemData name="strongemphasis" defStyleNum="dsNormal" italic="true" bold="true"/>
|
|
|
|
|
<itemData name="ruler" defStyleNum="dsNormal" bold="true" />
|
|
|
|
|
<itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true" />
|
|
|
|
|
<itemData name="linebreak" defStyleNum="dsNormal" underline="true" color="#999999"/>
|
|
|
|
|