Skip to content

Commit 0487341

Browse files
committed
Add markdown support for .mdx files
1 parent 1fa657d commit 0487341

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

HISTORY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 4.0.2 - 2023-10-10
2+
* Add support for .mdx files in markdown
3+
14
## 4.0.1 - 2022-03-07
25
* Update to commonmarker 0.18.3; There isn't a version on RubyGems for this, so this is pointing to a [tag version on GitHub](https://github.com/gjtorikian/commonmarker/blob/v0.18.3/commonmarker.gemspec)
36

lib/github-markup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module GitHub
22
module Markup
3-
VERSION = '4.0.1'
3+
VERSION = '4.0.2'
44
Version = VERSION
55
end
66
end

lib/github/markup/markdown.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class Markdown < Implementation
3131

3232
def initialize
3333
super(
34-
/md|mkdn?|mdwn|mdown|markdown|litcoffee/i,
35-
["Markdown", "Literate CoffeeScript"])
34+
/md|mkdn?|mdwn|mdown|markdown|mdx|litcoffee/i,
35+
["Markdown", "MDX", "Literate CoffeeScript"])
3636
end
3737

3838
def load

0 commit comments

Comments
 (0)