diff --git a/src/web/questions/pages/QuestionPage.tsx b/src/web/questions/pages/QuestionPage.tsx index f1d6e85..d19af1e 100644 --- a/src/web/questions/pages/QuestionPage.tsx +++ b/src/web/questions/pages/QuestionPage.tsx @@ -42,10 +42,27 @@ export const getServerSideProps: GetServerSideProps = async ( }; }; -const Section: React.FC<{ title: string }> = ({ title, children }) => ( -
-
-

{title}

+const Section: React.FC<{ title: string; id?: string }> = ({ + title, + children, + id, +}) => ( +
+
+

+ {title} + {id ? ( + <> + {" "} + + # + + + ) : null} +

{children}
@@ -56,7 +73,7 @@ const EmbedSection: React.FC<{ question: QuestionWithHistoryFragment }> = ({ }) => { const url = getBasePath() + `/questions/embed/${question.id}`; return ( -
+
Preview @@ -86,7 +103,7 @@ const LargeQuestionCard: React.FC<{
-
+
-
+
-
+