markupeditor 0.9.39 → 0.9.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32817,6 +32817,12 @@ function isRecognizedLanguage(name) {
32817
32817
  * the same language for display/matching purposes, matching isRecognizedLanguage's
32818
32818
  * own case-insensitivity.
32819
32819
  *
32820
+ * Filtered through isRecognizedLanguage, so a genuinely custom/unrecognized
32821
+ * language name typed into one block is no longer suggested for reuse in
32822
+ * another. Trade-off accepted for a positive, Markdown-agnostic rule ("only
32823
+ * present languages this app actually supports") rather than a per-language
32824
+ * exclusion list.
32825
+ *
32820
32826
  * @param {Node} doc A ProseMirror document node.
32821
32827
  * @returns {string[]}
32822
32828
  */
@@ -32827,7 +32833,7 @@ function presentCodeLanguages(doc) {
32827
32833
  languages.add(node.attrs.language.toLowerCase());
32828
32834
  }
32829
32835
  });
32830
- return Array.from(languages).sort()
32836
+ return Array.from(languages).filter(isRecognizedLanguage).sort()
32831
32837
  }
32832
32838
 
32833
32839
  // hljs never has classPrefix reconfigured elsewhere in this codebase, so this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markupeditor",
3
- "version": "0.9.39",
3
+ "version": "0.9.40",
4
4
  "description": "A web component and API for WYSIWYG HTML editing.",
5
5
  "keywords": [
6
6
  "wysiwyg",