Skip to content

Commit 1a5fe3a

Browse files
gomazarashigomazarashi
authored andcommitted
「構文」セクションまで翻訳
1 parent da761b7 commit 1a5fe3a

File tree

1 file changed

+10
-10
lines changed
  • crates/typst-library/src/model

1 file changed

+10
-10
lines changed

crates/typst-library/src/model/link.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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)]
4242
pub struct LinkElem {
4343
/// The destination the link points to.

0 commit comments

Comments
 (0)