Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LitileXueZha/fb835b18cb2c4712f08ca161eba5e4a2 to your computer and use it in GitHub Desktop.
Save LitileXueZha/fb835b18cb2c4712f08ca161eba5e4a2 to your computer and use it in GitHub Desktop.
IE11 support for almost useful library.

Highlight.js

After version 10, highlight.js no longer support IE11. See this doc.

Use debug mode to find out features which don't be supported: hljs.debugMode().
Use polyfill core-js to fix IE11.

// v10.4.0
import 'core-js/features/symbol';
import 'core-js/es/array/find-index';
import 'core-js/features/dom-collections/for-each';

marked

Library developers decide to no longer support IE11 and start using some es6 features. See this issue.

Use polyfill core-js to fix IE11.

// v1.2.5
import 'core-js/es/string/starts-with';
import 'core-js/es/string/ends-with';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment