1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/nkf] Fix docs

rdoc parses "Z[0-3]" as a link to "0-3", this commit escapes these so
that they don't become links.

https://github.com/ruby/nkf/commit/269c10061b
This commit is contained in:
Peter Zhu 2022-04-13 14:09:50 -04:00 committed by git
parent da1695b926
commit a0eb4b14d6

View file

@ -274,7 +274,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
* *
* {de/en}crypt ROT13/47 * {de/en}crypt ROT13/47
* *
* === -h[123] --hiragana --katakana --katakana-hiragana * === \-h[123] --hiragana --katakana --katakana-hiragana
* *
* [-h1 --hiragana] Katakana to Hiragana conversion. * [-h1 --hiragana] Katakana to Hiragana conversion.
* *
@ -299,7 +299,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
* *
* New line preserving line folding. * New line preserving line folding.
* *
* === -Z[0-3] * === \-Z[0-3]
* *
* Convert X0208 alphabet (Fullwidth Alphabets) to ASCII. * Convert X0208 alphabet (Fullwidth Alphabets) to ASCII.
* *
@ -318,7 +318,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
* With <b>-x</b>, try to preserve X0208 kana and do not convert X0201 kana to X0208. * With <b>-x</b>, try to preserve X0208 kana and do not convert X0201 kana to X0208.
* In JIS output, ESC-(-I is used. In EUC output, SSO is used. * In JIS output, ESC-(-I is used. In EUC output, SSO is used.
* *
* === -B[0-2] * === \-B[0-2]
* *
* Assume broken JIS-Kanji input, which lost ESC. * Assume broken JIS-Kanji input, which lost ESC.
* Useful when your site is using old B-News Nihongo patch. * Useful when your site is using old B-News Nihongo patch.
@ -336,7 +336,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
* *
* Delete \r in line feed, Add \r in line feed. * Delete \r in line feed, Add \r in line feed.
* *
* === -m[BQN0] * === \-m[BQN0]
* *
* MIME ISO-2022-JP/ISO8859-1 decode. (DEFAULT) * MIME ISO-2022-JP/ISO8859-1 decode. (DEFAULT)
* To see ISO8859-1 (Latin-1) -l is necessary. * To see ISO8859-1 (Latin-1) -l is necessary.
@ -365,7 +365,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
* Input and output code is ISO8859-1 (Latin-1) and ISO-2022-JP. * Input and output code is ISO8859-1 (Latin-1) and ISO-2022-JP.
* <b>-s</b>, <b>-e</b> and <b>-x</b> are not compatible with this option. * <b>-s</b>, <b>-e</b> and <b>-x</b> are not compatible with this option.
* *
* === -L[uwm] * === \-L[uwm]
* *
* new line mode * new line mode
* Without this option, nkf doesn't convert line breaks. * Without this option, nkf doesn't convert line breaks.