Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7e71ddf

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
doc,punycode: use code markup/markdown in headers
Backport-PR-URL: #31108 PR-URL: #31086 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 38c6a3f commit 7e71ddf
Copy full SHA for 7e71ddf

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Collapse file

‎doc/api/punycode.md‎

Copy file name to clipboardExpand all lines: doc/api/punycode.md
+8-8Lines changed: 8 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `punycode` module is a third-party dependency used by Node.js and
3737
made available to developers as a convenience. Fixes or other modifications to
3838
the module must be directed to the [Punycode.js][] project.
3939

40-
## punycode.decode(string)
40+
## `punycode.decode(string)`
4141
<!-- YAML
4242
added: v0.5.1
4343
-->
@@ -52,7 +52,7 @@ punycode.decode('maana-pta'); // 'mañana'
5252
punycode.decode('--dqo34k'); // '☃-⌘'
5353
```
5454

55-
## punycode.encode(string)
55+
## `punycode.encode(string)`
5656
<!-- YAML
5757
added: v0.5.1
5858
-->
@@ -67,7 +67,7 @@ punycode.encode('mañana'); // 'maana-pta'
6767
punycode.encode('☃-⌘'); // '--dqo34k'
6868
```
6969

70-
## punycode.toASCII(domain)
70+
## `punycode.toASCII(domain)`
7171
<!-- YAML
7272
added: v0.6.1
7373
-->
@@ -86,7 +86,7 @@ punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com'
8686
punycode.toASCII('example.com'); // 'example.com'
8787
```
8888

89-
## punycode.toUnicode(domain)
89+
## `punycode.toUnicode(domain)`
9090
<!-- YAML
9191
added: v0.6.1
9292
-->
@@ -104,12 +104,12 @@ punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com'
104104
punycode.toUnicode('example.com'); // 'example.com'
105105
```
106106

107-
## punycode.ucs2
107+
## `punycode.ucs2`
108108
<!-- YAML
109109
added: v0.7.0
110110
-->
111111

112-
### punycode.ucs2.decode(string)
112+
### `punycode.ucs2.decode(string)`
113113
<!-- YAML
114114
added: v0.7.0
115115
-->
@@ -125,7 +125,7 @@ punycode.ucs2.decode('abc'); // [0x61, 0x62, 0x63]
125125
punycode.ucs2.decode('\uD834\uDF06'); // [0x1D306]
126126
```
127127

128-
### punycode.ucs2.encode(codePoints)
128+
### `punycode.ucs2.encode(codePoints)`
129129
<!-- YAML
130130
added: v0.7.0
131131
-->
@@ -140,7 +140,7 @@ punycode.ucs2.encode([0x61, 0x62, 0x63]); // 'abc'
140140
punycode.ucs2.encode([0x1D306]); // '\uD834\uDF06'
141141
```
142142

143-
## punycode.version
143+
## `punycode.version`
144144
<!-- YAML
145145
added: v0.6.1
146146
-->

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.