Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c9ecfc

Browse files
aphillipseemeli
andauthored
Fix term link errors (#1023)
* Fix term link errors Fix errors in term highlighting * Update formatting.md Provide link targets for super-common terms _literal resolution_, _variable resolution_ and _function resolution_ * Provide link targets for style options and field options * define "namespace" * Fix expression resolution and markup resolution definitions * Update spec/formatting.md Co-authored-by: Eemeli Aro <[email protected]> --------- Co-authored-by: Eemeli Aro <[email protected]>
1 parent 2d8c77d commit 9c9ecfc

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

spec/formatting.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ and different implementations MAY choose to perform different levels of resoluti
188188
_Expressions_ are used in _declarations_ and _patterns_.
189189
_Markup_ is only used in _patterns_.
190190
191+
#### Expression Resolution
192+
193+
**_<dfn>Expression resolution</dfn>_** determines the value of an _expression_.
191194
Depending on the presence or absence of a _variable_ or _literal_ operand and a _function_,
192195
the _resolved value_ of the _expression_ is determined as follows:
193196
@@ -229,9 +232,9 @@ Its _resolved value_ is defined by _literal resolution_.
229232
> {{You have {42 :number}}}
230233
> ```
231234
232-
#### Literal Resolution
235+
##### Literal Resolution
233236
234-
The _resolved value_ of a _text_ or a _literal_ contains
237+
**_<dfn>Literal resolution</dfn>_** : The _resolved value_ of a _text_ or a _literal_ contains
235238
the character sequence of the _text_ or _literal_
236239
after any character escape has been converted to the escaped character.
237240
@@ -259,9 +262,9 @@ whether its value was originally a _quoted literal_ or an _unquoted literal_.
259262
> }
260263
> ```
261264
262-
#### Variable Resolution
265+
##### Variable Resolution
263266
264-
To resolve the value of a _variable_,
267+
**_<dfn>Variable resolution</dfn>_** : To resolve the value of a _variable_,
265268
its _name_ is used to identify either a local variable or an input variable.
266269
If a _declaration_ exists for the _variable_, its _resolved value_ is used.
267270
Otherwise, the _variable_ is an implicit reference to an input value,
@@ -277,9 +280,9 @@ a _fallback value_ is used as the _resolved value_ of the _variable_.
277280
The _fallback value_ representation of a _variable_ has a string representation
278281
consisting of the U+0024 DOLLAR SIGN `$` followed by the _name_ of the _variable_.
279282
280-
#### Function Resolution
283+
##### Function Resolution
281284
282-
To resolve an _expression_ with a _function_,
285+
**_<dfn>Function resolution</dfn>_** : To resolve an _expression_ with a _function_,
283286
the following steps are taken:
284287
285288
1. If the _expression_ includes an _operand_, resolve its value.
@@ -338,7 +341,7 @@ the following steps are taken:
338341
339342
In all failure cases, return a _fallback value_ as the _resolved value_ of the _expression_.
340343
341-
##### Function Handler
344+
###### Function Handler
342345
343346
A **_<dfn>function handler</dfn>_** is an implementation-defined process
344347
such as a function or method
@@ -370,7 +373,7 @@ and execution time SHOULD be limited.
370373
371374
Implementation-defined _functions_ SHOULD use an implementation-defined _namespace_.
372375
373-
##### Option Resolution
376+
###### Option Resolution
374377
375378
**_<dfn>Option resolution</dfn>_** is the process of computing the _options_
376379
for a given _expression_.
@@ -409,6 +412,7 @@ This mapping can be empty.
409412
410413
#### Markup Resolution
411414
415+
**_<dfn>Markup resolution</dfn>_** determines the value of _markup_.
412416
Unlike _functions_, the resolution of _markup_ is not customizable.
413417
414418
The _resolved value_ of _markup_ includes the following fields:

spec/functions/datetime.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ with _options_ on the _expression_ taking priority over any option values of the
5656
5757
###### Style Options
5858

59+
**_<dfn>Style options</dfn>_** pertain to the overall styling or appearance of the formatted output.
60+
5961
The function `:datetime` has these _style options_.
6062

6163
- `dateStyle`
@@ -71,7 +73,7 @@ The function `:datetime` has these _style options_.
7173

7274
###### Field Options
7375

74-
_Field options_ describe which fields to include in the formatted output
76+
**_<dfn>Field options</dfn>_** describe which fields to include in the formatted output
7577
and what format to use for that field.
7678

7779
> [!NOTE]

spec/functions/number.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ digit-size-option = "0" / (("1"-"9") [DIGIT])
630630
631631
If the value of a digit size option does not evaluate as a non-negative integer,
632632
or if the value exceeds any implementation-defined upper limit
633-
or any option-specific lower limit, a _Bad Option Error_ is emitted.
633+
or any option-specific lower limit, a _Bad Option_ error is emitted.
634634

635635
#### Number Selection
636636

spec/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ The _names_ are [immutable identifiers](https://www.unicode.org/reports/tr31/#Im
793793
An **_<dfn>identifier</dfn>_** is a character sequence that
794794
identifies a _function_, _markup_, or _option_.
795795
Each _identifier_ consists of a _name_ optionally preceeded by
796-
a _namespace_.
796+
a **_<dfn>namespace</dfn>_**.
797797
When present, the _namespace_ is separated from the _name_ by a
798798
U+003A COLON `:`.
799799
Built-in _functions_ and their _options_ do not have a _namespace_ identifier.

0 commit comments

Comments
 (0)