mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Remove more blocks
This commit is contained in:
parent
c3b3bbb9f2
commit
1d86f41831
@ -166,7 +166,7 @@ fn format_csv_error(error: csv::Error) -> String {
|
|||||||
/// )
|
/// )
|
||||||
/// #h(6pt)
|
/// #h(6pt)
|
||||||
/// #set text(22pt, baseline: -8pt)
|
/// #set text(22pt, baseline: -8pt)
|
||||||
/// #{day.temperature} °#{day.unit}
|
/// #day.temperature °#day.unit
|
||||||
/// ]
|
/// ]
|
||||||
///
|
///
|
||||||
/// #forecast(json("monday.json"))
|
/// #forecast(json("monday.json"))
|
||||||
@ -253,7 +253,7 @@ fn format_json_error(error: serde_json::Error) -> String {
|
|||||||
/// heading(title.children.first())
|
/// heading(title.children.first())
|
||||||
/// text(10pt, weight: "medium")[
|
/// text(10pt, weight: "medium")[
|
||||||
/// Published by
|
/// Published by
|
||||||
/// #{author.children.first()}
|
/// #author.children.first()
|
||||||
/// ]
|
/// ]
|
||||||
///
|
///
|
||||||
/// for p in pars.children {
|
/// for p in pars.children {
|
||||||
|
@ -41,10 +41,10 @@ pub fn type_(args: &mut Args) -> SourceResult<Value> {
|
|||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```
|
/// ```
|
||||||
/// #{ none } vs #repr(none) \
|
/// #none vs #repr(none) \
|
||||||
/// #{ "hello" } vs #repr("hello") \
|
/// #"hello" vs #repr("hello") \
|
||||||
/// #{ (1, 2) } vs #repr((1, 2)) \
|
/// #(1, 2) vs #repr((1, 2)) \
|
||||||
/// #{ [*Hi*] } vs #repr([*Hi*])
|
/// #[*Hi*] vs #repr([*Hi*])
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// ## Parameters
|
/// ## Parameters
|
||||||
|
@ -75,7 +75,7 @@ impl LayoutMath for VecNode {
|
|||||||
/// - rows: Array (positional, variadic)
|
/// - rows: Array (positional, variadic)
|
||||||
/// An array of arrays with the rows of the matrix.
|
/// An array of arrays with the rows of the matrix.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// ### Example
|
||||||
/// ```
|
/// ```
|
||||||
/// #let data = ((1, 2, 3), (4, 5, 6))
|
/// #let data = ((1, 2, 3), (4, 5, 6))
|
||||||
/// #let matrix = math.mat(..data)
|
/// #let matrix = math.mat(..data)
|
||||||
@ -210,15 +210,15 @@ impl Delimiter {
|
|||||||
|
|
||||||
castable! {
|
castable! {
|
||||||
Delimiter,
|
Delimiter,
|
||||||
/// Delimit the vector with parentheses.
|
/// Delimit with parentheses.
|
||||||
"(" => Self::Paren,
|
"(" => Self::Paren,
|
||||||
/// Delimit the vector with brackets.
|
/// Delimit with brackets.
|
||||||
"[" => Self::Bracket,
|
"[" => Self::Bracket,
|
||||||
/// Delimit the vector with curly braces.
|
/// Delimit with curly braces.
|
||||||
"{" => Self::Brace,
|
"{" => Self::Brace,
|
||||||
/// Delimit the vector with vertical bars.
|
/// Delimit with vertical bars.
|
||||||
"|" => Self::Bar,
|
"|" => Self::Bar,
|
||||||
/// Delimit the vector with double vertical bars.
|
/// Delimit with double vertical bars.
|
||||||
"||" => Self::DoubleBar,
|
"||" => Self::DoubleBar,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user