Skip to content

Commit

Permalink
New: Add “less” syntax highlighting in Markdown files (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzz authored and sapegin committed Jan 14, 2020
1 parent f96137c commit c291d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/utils/__tests__/highlightCode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ it('should warn when language not found', () => {
const actual = highlightCode(code, 'pizza');
expect(actual).toBe(code);
expect(warn).toBeCalledWith(
'Syntax highlighting for “pizza” isn’t supported. Supported languages are: markup, xml, html, mathml, svg, css, clike, javascript, js, markdown, md, scss, flow, typescript, ts, jsx, tsx, graphql, json, bash, shell, diff.'
'Syntax highlighting for “pizza” isn’t supported. Supported languages are: markup, xml, html, mathml, svg, css, clike, javascript, js, markdown, md, scss, less, flow, typescript, ts, jsx, tsx, graphql, json, bash, shell, diff.'
);
});

Expand Down
1 change: 1 addition & 0 deletions src/loaders/utils/highlightCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'prismjs/components/prism-markdown';
import 'prismjs/components/prism-css';
import 'prismjs/components/prism-css-extras';
import 'prismjs/components/prism-scss';
import 'prismjs/components/prism-less';
import 'prismjs/components/prism-javascript';
import 'prismjs/components/prism-flow';
import 'prismjs/components/prism-typescript';
Expand Down

0 comments on commit c291d86

Please sign in to comment.