Skip to content

Commit 57273a3

Browse files
committed
Add markdown support
1 parent 7cc2231 commit 57273a3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/CodeSnippetDisplay.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
pythonIcon,
2727
fileIcon,
2828
rKernelIcon,
29+
markdownIcon,
2930
} from '@jupyterlab/ui-components';
3031
import { CodeEditor, IEditorServices } from '@jupyterlab/codeeditor';
3132
import * as nbformat from '@jupyterlab/nbformat';
@@ -669,6 +670,18 @@ export class CodeSnippetDisplay extends React.Component<
669670
/>
670671
);
671672
}
673+
case 'Gfm': {
674+
return (
675+
<markdownIcon.react
676+
tag="span"
677+
height="16px"
678+
width="16px"
679+
right="7px"
680+
top="5px"
681+
margin-right="3px"
682+
/>
683+
);
684+
}
672685
case 'Java': {
673686
return (
674687
<javaIcon.react

src/CodeSnippetLanguages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export const SUPPORTED_LANGUAGES = [
6767
'F#',
6868
'Go',
6969
'Galileo',
70+
'Gfm',
7071
'Erlang',
7172
'PARI/GP',
7273
'Aldor',

0 commit comments

Comments
 (0)