A Textbringer plugin that provides Markdown syntax highlighting with support for headings, code blocks, links, lists, and more.
-
Syntax highlighting for Markdown elements:
- Headings (
#through######) - Bold (
**text**or__text__) - Italic (
*text*or_text_) - Inline code (
`code`) - Code blocks (triple backticks or 4-space indented)
- Links (
[text](url)) - URLs (
http://orhttps://) - Blockquotes (
> text) - Lists (
-,*,+, or numbered) - Horizontal rules (
---,***, or___)
- Headings (
-
Automatically activates for
.mdfiles -
Configures buffer settings for Markdown editing (spaces instead of tabs, tab width 4)
Install the gem by executing:
gem install textbringer-markdownOr add it to your Gemfile:
bundle add textbringer-markdownThe plugin is automatically loaded when you start Textbringer. Simply open any .md file and syntax highlighting will be applied automatically.
No additional configuration is required.
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
Bug reports and pull requests are welcome on GitHub at https://github.com/yancya/textbringer-markdown.
The gem is available as open source under the terms of the WTFPL.