Skip to content

Commit bda56ab

Browse files
committed
words
1 parent 32e852b commit bda56ab

File tree

4 files changed

+249
-246
lines changed

4 files changed

+249
-246
lines changed

docs/guide/actions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ Consequently `"set_background('blue')"` is a valid action string, but `"set_back
5656

5757
## Links
5858

59-
Actions may be embedded as links within console markup. You can create such links with a `@click` tag.
59+
Actions may be embedded in [markup](./content.md#actions) with the `@click` tag.
6060

61-
The following example mounts simple static text with embedded action links.
61+
The following example mounts simple static text with embedded action links:
6262

6363
=== "actions03.py"
6464

docs/guide/widgets.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Let's create a simple custom widget to display a greeting.
2626

2727
The highlighted lines define a custom widget class with just a [render()][textual.widget.Widget.render] method. Textual will display whatever is returned from render in the content area of your widget. We have returned a string in the code above, but there are other possible return types which we will cover later.
2828

29-
Note that the text contains tags in square brackets, i.e. `[b]`. This is [console markup](https://rich.readthedocs.io/en/latest/markup.html) which allows you to embed various styles within your content. If you run this you will find that `World` is in bold.
29+
Note that the text contains tags in square brackets, i.e. `[b]`.
30+
This is [Textual markup](./content.md#markup) which allows you to embed various styles within your content.
31+
If you run this you will find that `World` is in bold.
3032

3133
```{.textual path="docs/examples/guide/widgets/hello01.py"}
3234
```
@@ -118,15 +120,16 @@ CSS defined within `DEFAULT_CSS` has an automatically lower [specificity](./CSS.
118120

119121
## Text links
120122

121-
Text in a widget may be marked up with links which perform an action when clicked. Links in console markup use the following format:
123+
Text in a widget may be marked up with links which perform an action when clicked.
124+
Links in markup use the following format:
122125

123126
```
124127
"Click [@click='app.bell']Me[/]"
125128
```
126129

127130
The `@click` tag introduces a click handler, which runs the `app.bell` action.
128131

129-
Let's use markup links in the hello example so that the greeting becomes a link which updates the widget.
132+
Let's use links in the hello example so that the greeting becomes a link which updates the widget.
130133

131134

132135
=== "hello05.py"

docs/widgets/rich_log.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The example below shows an application showing a `RichLog` with different kinds
3333
| Name | Type | Default | Description |
3434
| ----------- | ------ | ------- | ------------------------------------------------------------ |
3535
| `highlight` | `bool` | `False` | Automatically highlight content. |
36-
| `markup` | `bool` | `False` | Apply Rich console markup. |
36+
| `markup` | `bool` | `False` | Apply markup. |
3737
| `max_lines` | `int` | `None` | Maximum number of lines in the log or `None` for no maximum. |
3838
| `min_width` | `int` | 78 | Minimum width of renderables. |
3939
| `wrap` | `bool` | `False` | Enable word wrapping. |

0 commit comments

Comments
 (0)