Skip to content

Commit

Permalink
feat: add MDX support (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernanberg authored and danielmahon committed Feb 27, 2019
1 parent eade53a commit 8a4e60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module.exports.fmImagesToRelative = node => {
// Save file references
fileNodes.push(node);
// Only process markdown files
if (node.internal.type === `MarkdownRemark`) {
if (node.internal.type === `MarkdownRemark` || node.internal.type === `Mdx`) {
// Convert paths in frontmatter to relative
function makeRelative(value) {
if (_.isString(value) && path.isAbsolute(value)) {
Expand Down

0 comments on commit 8a4e60b

Please sign in to comment.