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
|
@@ -55,7 +55,7 @@ const {highlight, languages} = Prism;
|
|
|
55
55
|
* language="typescript"
|
|
56
56
|
* />
|
|
57
57
|
* ```
|
|
58
|
-
* This example shows the use of the `
|
|
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[
|
|
84
|
+
__html: highlight(code.trim(), languages[language], language),
|
|
85
85
|
}}
|
|
86
86
|
/>
|
|
87
87
|
</pre>
|