@@ -3,14 +3,14 @@ use crate::engine::Engine;
33use crate :: foundations:: { elem, Content , Packed , Show , StyleChain } ;
44use crate :: text:: { ItalicToggle , TextElem } ;
55
6- /// Emphasizes content by toggling italics.
6+ /// イタリック体への切り替えによるコンテンツの強調。
77///
8- /// - If the current [text style ]($text.style) is `{"normal"}`, this turns it
9- /// into `{"italic"}`.
10- /// - If it is already `{"italic"}` or `{"oblique"}`, it turns it back to
11- /// `{"normal"}`.
8+ /// - 現在の[テキストスタイル ]($text.style)が `{"normal"}`の場合、これを
9+ /// `{"italic"}`に変更します。
10+ /// - 現在のテキストスタイルが既に `{"italic"}`あるいは `{"oblique"}`の場合、
11+ /// `{"normal"}`に戻します。
1212///
13- /// # Example
13+ /// # 例
1414/// ```example
1515/// This is _emphasized._ \
1616/// This is #emph[too.]
@@ -22,13 +22,13 @@ use crate::text::{ItalicToggle, TextElem};
2222/// This is _emphasized_ differently.
2323/// ```
2424///
25- /// # Syntax
26- /// This function also has dedicated syntax: To emphasize content, simply
27- /// enclose it in underscores ( `_`). Note that this only works at word
28- /// boundaries. To emphasize part of a word, you have to use the function.
25+ /// # 構文
26+ /// この関数には専用の構文もあります。
27+ /// コンテンツを強調するには、単にアンダースコア( `_`)で囲みます。ただし、これは単語の区切りにおいてのみ機能します。
28+ /// 単語の一部を強調する場合は、この関数を使用する必要があります。
2929#[ elem( title = "Emphasis" , keywords = [ "italic" ] , Show ) ]
3030pub struct EmphElem {
31- /// The content to emphasize.
31+ /// 強調するコンテンツ。
3232 #[ required]
3333 pub body : Content ,
3434}
0 commit comments