tinywidgets 1.0.12 → 1.0.13

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tinywidgets",
3
3
  "description": "A collection of tiny, reusable, React components",
4
- "version": "1.0.12",
4
+ "version": "1.0.13",
5
5
  "scripts": {
6
6
  "prePublishPackage": "eslint . && cspell --quiet . && tsc"
7
7
  },
@@ -55,7 +55,7 @@ const {highlight, languages} = Prism;
55
55
  * language="typescript"
56
56
  * />
57
57
  * ```
58
- * This example shows the use of the `tsx` language.
58
+ * This example shows the use of the `typescript` language.
59
59
  * @icon Lucide.SquareCode
60
60
  */
61
61
  export const Code = ({
@@ -81,7 +81,7 @@ export const Code = ({
81
81
  <code
82
82
  // eslint-disable-next-line react/no-danger
83
83
  dangerouslySetInnerHTML={{
84
- __html: highlight(code.trim(), languages['clike'], 'clike'),
84
+ __html: highlight(code.trim(), languages[language], language),
85
85
  }}
86
86
  />
87
87
  </pre>