From 4e2673c128ff9d5a51acc1f8edbf7460b4aab681 Mon Sep 17 00:00:00 2001 From: hypnos Date: Tue, 12 Dec 2017 02:47:55 +0300 Subject: [PATCH] Remove fallback from `codespan` to `code` option as they have different signatures --- src/createRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createRenderer.js b/src/createRenderer.js index 974fdc4..df36bba 100644 --- a/src/createRenderer.js +++ b/src/createRenderer.js @@ -59,7 +59,7 @@ export default function createRenderer (tracker, options, overrides = {}) { const elementId = tracker.nextElementId++; let inlineContent = null; - const elementType = options.elements && (options.elements[type] || options.elements[tag]) + const elementType = options.elements && options.elements[type] if (children) { inlineContent = Array.isArray(children) ? children.map(populateInlineContent) : populateInlineContent(children)