diff --git a/src/views/ArticleDetail/Content/index.tsx b/src/views/ArticleDetail/Content/index.tsx index 0b525ddf36..265eaad54f 100644 --- a/src/views/ArticleDetail/Content/index.tsx +++ b/src/views/ArticleDetail/Content/index.tsx @@ -131,7 +131,6 @@ Content.fragments = { id contents { html - markdown } } `, diff --git a/src/views/ArticleDetail/index.tsx b/src/views/ArticleDetail/index.tsx index ead6791fe8..20c424eb06 100644 --- a/src/views/ArticleDetail/index.tsx +++ b/src/views/ArticleDetail/index.tsx @@ -1,5 +1,4 @@ import { useLazyQuery, useQuery } from '@apollo/react-hooks' -import { md2html } from '@matters/matters-editor' import formatISO from 'date-fns/formatISO' import dynamic from 'next/dynamic' import { useContext, useEffect, useState } from 'react' @@ -222,11 +221,7 @@ const BaseArticleDetail = ({ const title = translated && translatedTitle ? translatedTitle : article.title const summary = translated && translatedSummary ? translatedSummary : article.summary - const isEnableMd = !!getQuery('md') // feature flag - const originalContent = - isEnableMd && article.contents.markdown - ? md2html(article.contents.markdown) - : article.contents.html + const originalContent = article.contents.html const content = translated && translatedContent ? translatedContent : originalContent const keywords = (article.tags || []).map(({ content: c }) => normalizeTag(c))