Skip to content

Markdown toggle focus between can_focus_children and normal mode #4227

Closed Answered by villekr
villekr asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you're totally right. That was my mistake missing that binding. So for now the code is the following.

How would the final iteration look like utilizing the fix for Textualize/rich#3295?

from rich.syntax import Syntax
from textual.app import App, ComposeResult
from textual.binding import Binding
from textual.containers import Horizontal
from textual.widgets import Markdown, Static
from textual.widgets._markdown import MarkdownFence

EXAMPLE_MARKDOWN = """\
# Markdown Document

This is an example of Textual's `Markdown` widget.

## Features

Markdown syntax and extensions are supported.

- Typography *emphasis*, **strong**, `inline code` etc.
- Headers
- Lists (bullet and ordered)
- Sy…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@villekr
Comment options

@TomJGooding
Comment options

Comment options

You must be logged in to vote
6 replies
@TomJGooding
Comment options

@villekr
Comment options

@TomJGooding
Comment options

@villekr
Comment options

Answer selected by villekr
@TomJGooding
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants