We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7308c87 commit ad1de88Copy full SHA for ad1de88
_components/ViewMarkdown.tsx
@@ -1,5 +1,5 @@
1
export default function ViewMarkdown({ file }: { file: string | undefined }) {
2
- if (!file) return null;
+ if (!file || !file.endsWith(".md")) return null;
3
4
return (
5
<a class="btn" target="_blank" href={file}>
0 commit comments