Skip to content
Permalink
Browse files

Formspec: Mark `hypertext` and markup language as unstable

  • Loading branch information
v-rob committed Mar 28, 2020
1 parent 13b2285 commit 9953145a4efe5d2487ec8f5edc76cf8e418b7b41
Showing with 6 additions and 4 deletions.
  1. +6 −4 doc/lua_api.txt
@@ -2255,9 +2255,10 @@ Elements

### `hypertext[<X>,<Y>;<W>,<H>;<name>;<text>]`
* Displays a static formatted text with hyperlinks.
* **Note**: This element is currently unstable and subject to change.
* `x`, `y`, `w` and `h` work as per field
* `name` is the name of the field as returned in fields to `on_receive_fields` in case of action in text.
* `text` is the formatted text using `markup language` described below.
* `text` is the formatted text using `Markup Language` described below.

### `vertlabel[<X>,<Y>;<label>]`
* Textual label drawn vertically
@@ -2643,11 +2644,12 @@ Some types may inherit styles from parent types.
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
* textcolor - color. Default white.

Markup language
Markup Language
---------------

Markup language used in `hypertext[]` elements uses tag that look like HTML tags. Some
tags can enclose text, they open with `<tagname>` and close with `</tagname>`.
Markup language used in `hypertext[]` elements uses tags that look like HTML tags.
The markup language is currently unstable and subject to change. Use with caution.
Some tags can enclose text, they open with `<tagname>` and close with `</tagname>`.
Tags can have attributes, in that case, attributes are in the opening tag in
form of a key/value separated with equal signs. Attribute values should not be quoted.

0 comments on commit 9953145

Please sign in to comment.
You can’t perform that action at this time.