Skip to content

Commit

Permalink
adding objective C syntax highlighting support
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygovier committed Jun 5, 2019
1 parent 7549ccc commit 8c6b9f4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion site/scripts/markdown-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,22 @@ import path from 'path';
import loadLanguages from 'prismjs/components/';
import { SiteStructureItem, MarkdownContent } from '../src/global/definitions';

const languages = ['tsx', 'bash', 'typescript', 'markup', 'css', 'json', 'java', 'diff', 'html', 'xml', 'swift', 'json5', 'shell'];
const languages = [
'bash',
'diff',
'css',
'html',
'java',
'json',
'json5',
'markup',
'objectivec',
'shell',
'swift',
'tsx',
'typescript',
'xml'
];
loadLanguages(languages);

export function findItem(siteStructureList: SiteStructureItem[], filePath: string): SiteStructureItem {
Expand Down

0 comments on commit 8c6b9f4

Please sign in to comment.