From 54e51fb1cbb5a90c703169d89d816184595e2bfc Mon Sep 17 00:00:00 2001 From: aaron-bond Date: Wed, 15 May 2019 14:42:48 +0100 Subject: [PATCH] adding markdown support, closes #91 --- CHANGELOG.md | 4 ++++ README.md | 2 ++ package.json | 1 + src/parser.ts | 1 + src/test/samples/markdown.md | 14 ++++++++++++++ 5 files changed, 22 insertions(+) create mode 100644 src/test/samples/markdown.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8efad..fe9a1a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index fc35023..4f81c44 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/package.json b/package.json index f675134..dd9de17 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "onLanguage:lisp", "onLanguage:lua", "onLanguage:makefile", + "onLanguage:markdown", "onLanguage:matlab", "onLanguage:nim", "onLanguage:objective-c", diff --git a/src/parser.ts b/src/parser.ts index 22c63b8..fd0d4eb 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -375,6 +375,7 @@ export class Parser { break; case "html": + case "markdown": this.setCommentFormat(""); break; diff --git a/src/test/samples/markdown.md b/src/test/samples/markdown.md new file mode 100644 index 0000000..afc7a6f --- /dev/null +++ b/src/test/samples/markdown.md @@ -0,0 +1,14 @@ +### some markdown +## Some other header + +* bullet point +* bullet point 2 + + + + + + + \ No newline at end of file