File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,16 +43,20 @@ export const ArticlePage = () => {
4343 const { t } = useTranslation ( 'pages' )
4444 const currentPath = router . asPath . split ( '?' ) [ 0 ]
4545
46+ const RenderHTML = ( props : { html : any } ) => (
47+ < div dangerouslySetInnerHTML = { { __html : props . html } } > </ div >
48+ )
49+
4650 const renderTocItem = ( item : MiniTocItem ) => {
4751 return (
4852 < ActionList . Item
4953 as = "a"
5054 href = { item . link }
5155 key = { item . title }
52- sx = { { listStyle : 'none' , padding : '2px' , fontSize : '14px' } }
56+ sx = { { listStyle : 'none' , padding : '2px' } }
5357 >
54- < div className = { cx ( item . platform ) } >
55- { item . title }
58+ < div className = { cx ( 'lh-condensed' , item . platform ) } >
59+ < RenderHTML html = { item . title } />
5660 { item . items && item . items . length > 0 ? (
5761 < ul className = "ml-3" > { item . items . map ( renderTocItem ) } </ ul >
5862 ) : null }
You can’t perform that action at this time.
0 commit comments