Skip to content

Commit

Permalink
🐝 remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Nov 1, 2023
1 parent 9eb8b02 commit 5d10eda
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/@ourworldindata/components/src/SimpleMarkdownText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,7 @@ export class SimpleMarkdownText extends React.Component<SimpleMarkdownTextProps>
return this.props.text
}

// @computed get ast(): MarkdownRoot["children"] {
// if (!this.text) return []
// const result = mdParser.markdown.parse(this.props.text)
// if (result.status) {
// return result.value.children
// }
// return []
// }

// @computed get tokens(): IRToken[] {
// const tokens = parsimmonToTextTokens(this.ast, {})
// return recursiveMergeTextTokens(tokens)
// }

render(): JSX.Element | null {
// const { tokens } = this
return <Remark>{this.text}</Remark>
}
}

0 comments on commit 5d10eda

Please sign in to comment.