File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
crates/typst-library/src/model Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ use crate::text::TextElem;
1515
1616/// URLや文書中の位置へのリンク。
1717///
18- /// By default, links do not look any different from normal text. However,
19- /// you can easily apply a style of your choice with a show rule.
18+ /// デフォルトでは、リンクの外見は通常のテキストと変わりません。
19+ /// しかし、showルールを使うことで、簡単に任意のスタイルを適用できます。
2020///
21- /// # Example
21+ /// # 例
2222/// ```example
2323/// #show link: underline
2424///
@@ -30,14 +30,14 @@ use crate::text::TextElem;
3030/// ]
3131/// ```
3232///
33- /// # Hyphenation
34- /// If you enable hyphenation or justification, by default, it will not apply to
35- /// links to prevent unwanted hyphenation in URLs. You can opt out of this
36- /// default via `{show link: set text(hyphenate: true)}`.
33+ /// # ハイフネーション
34+ /// ハイフネーションや両端揃えを有効にしていても、意図しないURL中のハイフネーションを防ぐため、
35+ /// デフォルトではリンクには適用されません。
36+ /// これを無効化するには、 `{show link: set text(hyphenate: true)}`を使用します。
3737///
38- /// # Syntax
39- /// This function also has dedicated syntax: Text that starts with `http://` or
40- /// `https://` is automatically turned into a link.
38+ /// # 構文
39+ /// この関数には専用の構文もあります。
40+ /// `http://`や` https://`で始まるテキストは、自動的にリンクに変換されます。
4141#[ elem( Show ) ]
4242pub struct LinkElem {
4343 /// The destination the link points to.
You can’t perform that action at this time.
0 commit comments