Markdown support

Display rich text content with markdown support.

Display rich text content with markdown support in GUI panels.

Features:

Source: examples/02_gui/03_markdown.py

Markdown support

Code

 1import time
 2from pathlib import Path
 3
 4import viser
 5
 6server = viser.ViserServer()
 7server.scene.world_axes.visible = True
 8
 9markdown_counter = server.gui.add_markdown("Counter: 0")
10
11here = Path(__file__).absolute().parent
12
13button = server.gui.add_button("Remove blurb")
14checkbox = server.gui.add_checkbox("Visibility", initial_value=True)
15
16markdown_source = """
17Viser has full support for the GFM markdown spec, including **bold**, _italics_,
18~~strikethrough~~, and many other features.
19
20Here's a [masked link](https://github.com/nerfstudio-project/viser), and a
21normal one: https://pypi.org/project/viser/
22
23In inline code blocks, you can show off colors with color chips: `#FED363`
24`hsl(0, 0%, 82%)` `rgb(255, 255, 255)`