Skip to content

Commit

Permalink
adding markdown support, closes #91
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-bond committed May 15, 2019
1 parent f90bdd8 commit 54e51fb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [2.0.5] (2019-??-??)
### Features
* Adding Markdown support ([XXX](https://github.com/aaron-bond/better-comments/commit/XXX)), closes [#91](https://github.com/aaron-bond/better-comments/issues/91)

## [2.0.4] (2019-05-14)
### Bug Fixes
* Fixing Groovy support ([099bcc0](https://github.com/aaron-bond/better-comments/commit/099bcc0)), closes [#150](https://github.com/aaron-bond/better-comments/issues/150)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The default 5 can be modifed to change the colors, and more can be added.
* Dart
* Dockerfile
* Elixir
* Elm
* Erlang
* F#
* Fortran
Expand All @@ -99,6 +100,7 @@ The default 5 can be modifed to change the colors, and more can be added.
* Lisp
* Lua
* Makefile
* Markdown
* Nim
* MATLAB
* Objective-C
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"onLanguage:lisp",
"onLanguage:lua",
"onLanguage:makefile",
"onLanguage:markdown",
"onLanguage:matlab",
"onLanguage:nim",
"onLanguage:objective-c",
Expand Down
1 change: 1 addition & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ export class Parser {
break;

case "html":
case "markdown":
this.setCommentFormat("<!--", "<!--", "-->");
break;

Expand Down
14 changes: 14 additions & 0 deletions src/test/samples/markdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### some markdown
## Some other header

* bullet point
* bullet point 2

<!-- comments -->
<!-- ! comments -->
<!-- * comments -->
<!-- ? comments -->
<!-- TODO comments -->
<!--
! comments
-->

0 comments on commit 54e51fb

Please sign in to comment.