diff --git a/docs/generate-metadata.js b/docs/generate-metadata.js index 0df383aee8..b8b2318813 100644 --- a/docs/generate-metadata.js +++ b/docs/generate-metadata.js @@ -2,6 +2,11 @@ import metadata from 'react-component-metadata'; import glob from 'glob'; import fsp from 'fs-promise'; import promisify from '../tools/promisify'; +import marked from 'marked'; + +marked.setOptions({ + xhtml: true +}); let globp = promisify(glob); @@ -23,6 +28,7 @@ let isLiteral = str => str.trim()[0] === '"' || str.trim()[0] === "'"; function parseDoclets(obj){ obj.doclets = metadata.parseDoclets(obj.desc || ''); obj.desc = cleanDoclets(obj.desc || ''); + obj.descHtml = marked(obj.desc || ''); } /** diff --git a/docs/src/PropTable.js b/docs/src/PropTable.js index 11dc39c26e..686afbf180 100644 --- a/docs/src/PropTable.js +++ b/docs/src/PropTable.js @@ -70,7 +70,7 @@ const PropTable = React.createClass({