Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save infologie/df7847e0f18f58d2a623ed2004e3a39b to your computer and use it in GitHub Desktop.
Save infologie/df7847e0f18f58d2a623ed2004e3a39b to your computer and use it in GitHub Desktop.
A Pandoc Markdown Codeless Language Module for BBEdit
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>Pandoc Markdown</string>
<key>BBLMLanguageCode</key>
<string>pmd</string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMScansFunctions</key>
<true/>
<key>BBLMIsCaseSensitive</key>
<false/>
<key>BBLMKeywordList</key>
<array>
</array>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.md</string>
</dict>
</array>
<key>Language Features</key>
<dict>
<key>Comment Pattern</key>
<string><![CDATA[(?x:
(?s:<!--.*?-->) (?# comment block)
)]]></string>
<key>Function Pattern</key>
<string><![CDATA[(?x:
(?P<function> (?# heading)
^\#+\s+
(?<function_name>
[^\r]+\r
)
)
)]]></string>
<key>String Pattern</key>
<string><![CDATA[(?x:
^---$ (?# yaml delimiter) |
^[a-z]+: (?# yaml field) |
^\#+\s+ (?# heading) |
\*+ (?# bold and italic) |
`+ (?# code delimiter) |
^[\s]*(-|\d+\.)\s (?# list marker) |
^> (?# blockquote) |
!\[ (?# image delimiter start) |
\]\([^)]+\) (?# image delimiter end) |
\[[^\[\]]+\]\([^)]+\) (?# link) |
<[^>]+> (?# link) |
\[\[\d{12}\]\] (?# zettelkasten link) |
\[[^@^…\]]*@[^\d]+\d{4}[^]]*\] (?# citation) |
\[\^\d+\]:? (?# numbered footnote) |
\^\[[^\[\]]+\] (?# inline footnote)
)]]></string>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment