mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Final tweaks
This commit is contained in:
parent
03286f73be
commit
622c1d747e
@ -20,8 +20,8 @@ description: |
|
|||||||
- Fixed alignment of [`line`]($func/line) elements
|
- Fixed alignment of [`line`]($func/line) elements
|
||||||
|
|
||||||
- Math
|
- Math
|
||||||
- **Breaking change:** Improved parsing of function-like markup in
|
- **Breaking change:** The syntax rules for mathematical
|
||||||
[attachments]($func/math.attach): `[$f^abs(3)$]` now parses as
|
[attachments]($func/math.attach) were improved: `[$f^abs(3)$]` now parses as
|
||||||
`[$f^(abs(3))$]` instead of `[$(f^abs)(3)$]`. To disambiguate, add a space:
|
`[$f^(abs(3))$]` instead of `[$(f^abs)(3)$]`. To disambiguate, add a space:
|
||||||
`[$f^zeta (3)$]`.
|
`[$f^zeta (3)$]`.
|
||||||
- Added [forced size]($category/math/sizes) commands for math
|
- Added [forced size]($category/math/sizes) commands for math
|
||||||
|
@ -188,11 +188,16 @@ cast! {
|
|||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```example
|
/// ```example
|
||||||
/// #datetime(
|
/// #let date = datetime(
|
||||||
/// year: 2012,
|
/// year: 2012,
|
||||||
/// month: 8,
|
/// month: 8,
|
||||||
/// day: 3,
|
/// day: 3,
|
||||||
/// ).display()
|
/// )
|
||||||
|
///
|
||||||
|
/// #date.display() \
|
||||||
|
/// #date.display(
|
||||||
|
/// "[day].[month].[year]"
|
||||||
|
/// )
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// ## Format
|
/// ## Format
|
||||||
@ -306,6 +311,9 @@ cast! {
|
|||||||
|
|
||||||
/// Returns the current date.
|
/// Returns the current date.
|
||||||
///
|
///
|
||||||
|
/// Refer to the documentation of the [`display`]($type/datetime.display) method
|
||||||
|
/// for details on how to affect the formatting of the date.
|
||||||
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```example
|
/// ```example
|
||||||
/// Today's date is
|
/// Today's date is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user