diff --git a/plugins/plugin-md-power/__test__/__snapshots__/langReplPlugin.spec.ts.snap b/plugins/plugin-md-power/__test__/__snapshots__/langReplPlugin.spec.ts.snap index c6718f77..4f04c550 100644 --- a/plugins/plugin-md-power/__test__/__snapshots__/langReplPlugin.spec.ts.snap +++ b/plugins/plugin-md-power/__test__/__snapshots__/langReplPlugin.spec.ts.snap @@ -17,6 +17,14 @@ exports[`langReplPlugin > should work with custom options 1`] = `
const a = 1
 
+
hello_world()
+
+
hello_world()
+
+
hello_world()
+
+
hello_world()
+
" `; @@ -31,6 +39,9 @@ exports[`langReplPlugin > should work with custom options 2`] = ` }, "rust": { "language": "rust" + }, + "python": { + "language": "python" } }, "theme": { @@ -61,6 +72,14 @@ exports[`langReplPlugin > should work with custom theme 1`] = `
const a = 1
 
+
hello_world()
+
+
hello_world()
+
+
hello_world()
+
+
hello_world()
+
" `; @@ -75,6 +94,9 @@ exports[`langReplPlugin > should work with custom theme 2`] = ` }, "rust": { "language": "rust" + }, + "python": { + "language": "python" } } }" @@ -113,6 +135,22 @@ exports[`langReplPlugin > should work with default options 1`] = `
const a = 1
 

:::

+

::: python-repl

+
hello_world()
+
+

:::

+

::: python-repl editable

+
hello_world()
+
+

:::

+

::: python-repl title="title"

+
hello_world()
+
+

:::

+

::: python-repl editable title="title"

+
hello_world()
+
+

:::

" `; diff --git a/plugins/plugin-md-power/__test__/langReplPlugin.spec.ts b/plugins/plugin-md-power/__test__/langReplPlugin.spec.ts index a7ea041f..36e76301 100644 --- a/plugins/plugin-md-power/__test__/langReplPlugin.spec.ts +++ b/plugins/plugin-md-power/__test__/langReplPlugin.spec.ts @@ -46,6 +46,7 @@ function initFs() { [path.join(grammarsPath, 'grammars/go.json')]: '{ "language": "go" }', [path.join(grammarsPath, 'grammars/kotlin.json')]: '{ "language": "kotlin" }', [path.join(grammarsPath, 'grammars/rust.json')]: '{ "language": "rust" }', + [path.join(grammarsPath, 'grammars/python.json')]: '{ "language": "python" }', }) } @@ -101,6 +102,29 @@ const a = 1 ${FENCE} ::: +::: python-repl +${FENCE}python +hello_world() +${FENCE} +::: + +::: python-repl editable +${FENCE}python +hello_world() +${FENCE} +::: + +::: python-repl title="title" +${FENCE}python +hello_world() +${FENCE} +::: + +::: python-repl editable title="title" +${FENCE}python +hello_world() +${FENCE} +::: ` it('should work with default options', async () => { initFs() @@ -117,6 +141,7 @@ ${FENCE} go: true, kotlin: true, rust: true, + python: true, }) expect(md.render(code)).toMatchSnapshot() @@ -130,6 +155,7 @@ ${FENCE} go: true, kotlin: true, rust: true, + python: true, theme: 'vitesse-light', })