Skip to content

Commit

Permalink
Merge pull request #1730 from github/ctmayn/mdx-markdown-support
Browse files Browse the repository at this point in the history
Add markdown support for .mdx files
  • Loading branch information
ctmayn committed Oct 11, 2023
2 parents 1fa657d + 0487341 commit a849a12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 4.0.2 - 2023-10-10
* Add support for .mdx files in markdown

## 4.0.1 - 2022-03-07
* 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)

Expand Down
2 changes: 1 addition & 1 deletion lib/github-markup.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module GitHub
module Markup
VERSION = '4.0.1'
VERSION = '4.0.2'
Version = VERSION
end
end
4 changes: 2 additions & 2 deletions lib/github/markup/markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class Markdown < Implementation

def initialize
super(
/md|mkdn?|mdwn|mdown|markdown|litcoffee/i,
["Markdown", "Literate CoffeeScript"])
/md|mkdn?|mdwn|mdown|markdown|mdx|litcoffee/i,
["Markdown", "MDX", "Literate CoffeeScript"])
end

def load
Expand Down

0 comments on commit a849a12

Please sign in to comment.