Browse Source

site: toc should support inner html

pull/1200/head
Benjy Cui 9 years ago
parent
commit
48dfb55cbb
  1. 5
      site/component/Article/index.jsx

5
site/component/Article/index.jsx

@ -37,9 +37,8 @@ export default class Article extends React.Component {
}).map((node) => {
return (
<li key={node.children}>
<Link to={{ pathname: location.pathname, query: { scrollTo: node.children } }}>
{ node.children }
</Link>
<Link to={{ pathname: location.pathname, query: { scrollTo: node.children } }}
dangerouslySetInnerHTML={{ __html: node.children }} />
</li>
);
});

Loading…
Cancel
Save