Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit a0a2a14

Browse files
Issue 870 - Update highlight.js, use standard css, add plaintext+julia syntax (#871)
1 parent 8b17ecf commit a0a2a14

File tree

5 files changed

+23
-180
lines changed

5 files changed

+23
-180
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [Unreleased]
6+
### Added
7+
- [#871](https://github.com/plotly/dash-core-components/pull/871) Add Julia syntax highlighting support for dcc.Markdown
8+
59
## [1.12.1] - 2020-09-16
610
### Fixed
711
- [#854](https://github.com/plotly/dash-core-components/pull/854) Used `persistenceTransforms` to strip the time part of the datetime in the persited props of DatePickerSingle (date) and DatePickerRange (end_date, start_date), fixing [dcc#700](https://github.com/plotly/dash-core-components/issues/700).

package-lock.json

Lines changed: 12 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"dependencies": {
4343
"color": "^3.1.0",
4444
"fast-isnumeric": "^1.1.3",
45-
"highlight.js": "^9.17.1",
45+
"highlight.js": "^10.3.1",
4646
"moment": "^2.20.1",
4747
"plotly.js": "1.55.2",
4848
"prop-types": "^15.6.0",

src/components/css/highlight.css

Lines changed: 0 additions & 150 deletions
This file was deleted.

src/third-party/highlight.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import highlightjs from 'highlight.js/lib/highlight';
2-
import '../components/css/highlight.css';
1+
import highlightjs from 'highlight.js/lib/core';
2+
import 'highlight.js/styles/github.css';
33

44
import bash from 'highlight.js/lib/languages/bash';
55
import css from 'highlight.js/lib/languages/css';
66
import http from 'highlight.js/lib/languages/http';
77
import javascript from 'highlight.js/lib/languages/javascript';
88
import json from 'highlight.js/lib/languages/json';
9+
import julia from 'highlight.js/lib/languages/julia';
910
import markdown from 'highlight.js/lib/languages/markdown';
11+
import plaintext from 'highlight.js/lib/languages/plaintext';
1012
import python from 'highlight.js/lib/languages/python';
1113
import r from 'highlight.js/lib/languages/r';
1214
import ruby from 'highlight.js/lib/languages/ruby';
@@ -20,7 +22,9 @@ highlightjs.registerLanguage('css', css);
2022
highlightjs.registerLanguage('http', http);
2123
highlightjs.registerLanguage('javascript', javascript);
2224
highlightjs.registerLanguage('json', json);
25+
highlightjs.registerLanguage('julia', julia);
2326
highlightjs.registerLanguage('markdown', markdown);
27+
highlightjs.registerLanguage('plaintext', plaintext);
2428
highlightjs.registerLanguage('python', python);
2529
highlightjs.registerLanguage('r', r);
2630
highlightjs.registerLanguage('ruby', ruby);

0 commit comments

Comments
 (0)