From b81034cc132fbd8a07b39551b113e52ce595ffba Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 6 May 2016 14:17:41 +0800 Subject: [PATCH] site: convert a to Link --- site/component/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/component/utils.js b/site/component/utils.js index 5ae87f7461..67b7230803 100644 --- a/site/component/utils.js +++ b/site/component/utils.js @@ -38,6 +38,9 @@ export function jsonmlToComponent(pathname, jsonml) { [(node) => getTagName(node) === 'video', (node, index) => ], + [(node) => getTagName(node) === 'a', (node, index) => + {toReactComponent(getChildren(node)[0])} + ], [(node) => { return isElement(node) && getTagName(node) === 'p' &&