From 292b0e0b0716716b5505e43a3de75487794f887d Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 7 Feb 2020 18:57:12 +0100 Subject: Support for linkReferences and footnotes --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/index.js b/src/index.js index 9f5fd12..3007b90 100644 --- a/src/index.js +++ b/src/index.js @@ -3,7 +3,7 @@ const parseAttr = require('md-attr-parser'); const htmlElemAttr = require('html-element-attributes'); -const supportedElements = ['link', 'atxHeading', 'strong', 'emphasis', 'deletion', 'code', 'setextHeading', 'fencedCode']; +const supportedElements = ['link', 'atxHeading', 'strong', 'emphasis', 'deletion', 'code', 'setextHeading', 'fencedCode', 'reference']; const blockElements = ['atxHeading', 'setextHeading']; const particularElements = ['fencedCode']; @@ -21,6 +21,7 @@ const convTypeTag = { delete: 's', inlineCode: 'code', code: 'code', + linkReference: 'a', '*': '*', }; -- cgit v1.2.3