mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-24 04:02:50 +08:00
Added details for using links within markup.
This commit is contained in:
parent
bb013dcc52
commit
9cbfda9e4a
@ -5,6 +5,7 @@ Highlights:
|
|||||||
- Bold, Italic, Underline, strikethrough
|
- Bold, Italic, Underline, strikethrough
|
||||||
- Dim, Invert
|
- Dim, Invert
|
||||||
- Conceal, slowblink, rapidblink
|
- Conceal, slowblink, rapidblink
|
||||||
|
- Links
|
||||||
---
|
---
|
||||||
|
|
||||||
Note that what styles that can be used is defined by the system or your terminal software, and may not appear as they should.
|
Note that what styles that can be used is defined by the system or your terminal software, and may not appear as they should.
|
||||||
@ -46,4 +47,8 @@ Note that what styles that can be used is defined by the system or your terminal
|
|||||||
<td><code>strikethrough</code></td>
|
<td><code>strikethrough</code></td>
|
||||||
<td>Shows text with a horizontal line through the center</td>
|
<td>Shows text with a horizontal line through the center</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>link</link></td>
|
||||||
|
<td>Creates a clickable link within text</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
@ -106,6 +106,15 @@ AnsiConsole.Markup("[rgb(255,0,0)]Baz[/] ");
|
|||||||
|
|
||||||
For a list of colors, see the [Colors](xref:colors) appendix section.
|
For a list of colors, see the [Colors](xref:colors) appendix section.
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
To output a clickable link, you can use the `[link]` style.
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
AnsiConsole.Markup("[link]https://spectreconsole.net[/]");
|
||||||
|
AnsiConsole.Markup("[link=https://spectreconsole.net]Spectre Console Documentation[/]");
|
||||||
|
```
|
||||||
|
|
||||||
## Styles
|
## Styles
|
||||||
|
|
||||||
For a list of styles, see the [Styles](xref:styles) appendix section.
|
For a list of styles, see the [Styles](xref:styles) appendix section.
|
Loading…
x
Reference in New Issue
Block a user