docs and refactor

This commit is contained in:
Will McGugan
2023-02-14 15:22:15 +00:00
parent ea74ca7725
commit 71d0017ef9
19 changed files with 1449 additions and 123 deletions

40
docs/widgets/markdown.md Normal file
View File

@@ -0,0 +1,40 @@
# Markdown
A widget to display a Markdown document.
- [x] Focusable
- [ ] Container
!!! tip
See [MarkdownViewer](./markdown_viewer.md) for a widget that adds additional features such as a Table of Contents.
## Example
The following example displays Markdown from a string.
=== "Output"
```{.textual path="docs/examples/widgets/markdown.py"}
```
=== "markdown.py"
~~~python
--8<-- "docs/examples/widgets/markdown.py"
~~~
## Messages
### ::: textual.widgets.Markdown.TOCUpdated
### ::: textual.widgets.Markdown.TOCSelected
### ::: textual.widgets.Markdown.LinkClicked
## See Also
* [Markdown][textual.widgets.Markdown] code reference
* [MarkdownViewer][textual.widgets.MarkdownViewer] code reference