@@ -1075,59 +1075,4 @@ var codeInput = {
10751075}
10761076// ESM-SUPPORT-END-TEMPLATES-BLOCK-2 Do not (re)move this - it's needed for ESM generation!
10771077
1078- {
1079- // Templates are defined here after the codeInput variable is set, because they reference it by extending codeInput.Template.
1080-
1081- // ESM-SUPPORT-START-TEMPLATE-prism Do not (re)move this - it's needed for ESM generation!
1082- /**
1083- * A template that uses Prism.js syntax highlighting (https://prismjs.com/).
1084- */
1085- class Prism extends codeInput . Template { // Dependency: Prism.js (https://prismjs.com/)
1086- /**
1087- * Constructor to create a template that uses Prism.js syntax highlighting (https://prismjs.com/)
1088- * @param {Object } prism Import Prism.js, then after that import pass the `Prism` object as this parameter.
1089- * @param {codeInput.Plugin[] } plugins - An array of plugin objects to add extra features - see `codeInput.plugins`
1090- * @returns {codeInput.Template } template object
1091- */
1092- constructor ( prism , plugins = [ ] ) {
1093- super (
1094- prism . highlightElement , // highlight
1095- true , // preElementStyled
1096- true , // isCode
1097- false , // includeCodeInputInHighlightFunc
1098- plugins
1099- ) ;
1100- }
1101- } ;
1102- // ESM-SUPPORT-END-TEMPLATE-prism Do not (re)move this - it's needed for ESM generation!
1103- codeInput . templates . Prism = Prism ;
1104-
1105- // ESM-SUPPORT-START-TEMPLATE-hljs Do not (re)move this - it's needed for ESM generation!
1106- /**
1107- * A template that uses highlight.js syntax highlighting (https://highlightjs.org/).
1108- */
1109- class Hljs extends codeInput . Template { // Dependency: Highlight.js (https://highlightjs.org/)
1110- /**
1111- * Constructor to create a template that uses highlight.js syntax highlighting (https://highlightjs.org/)
1112- * @param {Object } hljs Import highlight.js, then after that import pass the `hljs` object as this parameter.
1113- * @param {codeInput.Plugin[] } plugins - An array of plugin objects to add extra features - see `codeInput.plugins`
1114- * @returns {codeInput.Template } template object
1115- */
1116- constructor ( hljs , plugins = [ ] ) {
1117- super (
1118- function ( codeElement ) {
1119- codeElement . removeAttribute ( "data-highlighted" ) ;
1120- hljs . highlightElement ( codeElement ) ;
1121- } , // highlight
1122- false , // preElementStyled
1123- true , // isCode
1124- false , // includeCodeInputInHighlightFunc
1125- plugins
1126- ) ;
1127- }
1128- } ;
1129- // ESM-SUPPORT-END-TEMPLATE-hljs Do not (re)move this - it's needed for ESM generation!
1130- codeInput . templates . Hljs = Hljs ;
1131- }
1132-
11331078customElements . define ( "code-input" , codeInput . CodeInput ) ;
0 commit comments