diff --git a/doc/how_to/custom_components/esm/custom_layout.md b/doc/how_to/custom_components/esm/custom_layout.md index 7e59bc9c4a..5add55d17d 100644 --- a/doc/how_to/custom_components/esm/custom_layout.md +++ b/doc/how_to/custom_components/esm/custom_layout.md @@ -244,6 +244,7 @@ split_anywidget = SplitAnyWidget( ) split_anywidget.servable() ``` +::: :::: @@ -264,8 +265,6 @@ split_react.right=pn.pane.Markdown("Hi. I'm a `Markdown` pane replacing the `Cod ``` ::: -::: - :::{tab-item} `AnyWidgetComponent` ```{pyodide} split_anywidget.right=pn.pane.Markdown("Hi. I'm a `Markdown` pane replacing the `CodeEditor` widget!", sizing_mode="stretch_both") diff --git a/doc/how_to/custom_components/reactive_html/reactive_html_layout.md b/doc/how_to/custom_components/reactive_html/reactive_html_layout.md index cabe791a24..e86a33cd84 100644 --- a/doc/how_to/custom_components/reactive_html/reactive_html_layout.md +++ b/doc/how_to/custom_components/reactive_html/reactive_html_layout.md @@ -182,10 +182,8 @@ The component will trigger a rerendering if you update the `List` value. You must -- wrap the `{% for object in objects %}` loop in an HTML element with an `id`. Here it is wrapped -with `
...
`. -- close all HTML tags! `
` is valid HTML, but not valid with `ReactiveHTML`. You must close it -as `
`. +- wrap the `{% for object in objects %}` loop in an HTML element with an `id`. Here it is wrapped with `
...
`. +- close all HTML tags! `
` is valid HTML, but not valid with `ReactiveHTML`. You must close it as `
`. You can optionally @@ -232,11 +230,9 @@ You can now use `[...]` indexing and the `.append`, `.insert`, `pop`, ... method expect. :::{note} - You must list `ListLike, ReactiveHTML` in exactly that order when you define the class! The other way around `ReactiveHTML, NamedListLike` will not work. - -:::: +::: ## Layout a dictionary @@ -271,10 +267,6 @@ LayoutOfDict(object={ ``` :::{note} - -Please note - - We can insert the `key` as a literal value only using `{{ key }}`. Inserting it as a template variable `${key}` will not work. - We must not give the HTML element containing `{{ key }}` an `id`. If we do, an exception will be raised. - ::: diff --git a/doc/how_to/editor/markdown.md b/doc/how_to/editor/markdown.md index 3dc4e9799a..a3e8ed3fa9 100644 --- a/doc/how_to/editor/markdown.md +++ b/doc/how_to/editor/markdown.md @@ -82,6 +82,7 @@ def hello_world(text): pn.Row(widget, pn.bind(hello_world, widget)).servable() ``` ```` +::: Then, from the command line, launch a server with: diff --git a/doc/how_to/extending_panel.md b/doc/how_to/extending_panel.md index 97ea384f03..07224cacde 100644 --- a/doc/how_to/extending_panel.md +++ b/doc/how_to/extending_panel.md @@ -3,7 +3,7 @@