Skip to content

Commit c291d86

Browse files
zhzzsapegin
authored andcommitted
New: Add “less” syntax highlighting in Markdown files (#1520)
1 parent f96137c commit c291d86

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/loaders/utils/__tests__/highlightCode.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ it('should warn when language not found', () => {
1717
const actual = highlightCode(code, 'pizza');
1818
expect(actual).toBe(code);
1919
expect(warn).toBeCalledWith(
20-
'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.'
20+
'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.'
2121
);
2222
});
2323

src/loaders/utils/highlightCode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'prismjs/components/prism-markdown';
77
import 'prismjs/components/prism-css';
88
import 'prismjs/components/prism-css-extras';
99
import 'prismjs/components/prism-scss';
10+
import 'prismjs/components/prism-less';
1011
import 'prismjs/components/prism-javascript';
1112
import 'prismjs/components/prism-flow';
1213
import 'prismjs/components/prism-typescript';

0 commit comments

Comments
 (0)