Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Path Documentation Syntax Fixes
The single quote in the ```text area was causing the words after it to
be orange, when that probably isn't what was wanted. This issue doesn't
occur on github's markdown renderer, but it does exist on the Node
official website's docs.

This fix makes is so escaping a quote in a text block isnt necessary
  • Loading branch information
joeycozza committed Jul 21, 2016
commit d4b79b23ffa7fc8a8d4caa22a39c4e0fba5249e1
4 changes: 2 additions & 2 deletions doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ path.parse('/home/user/dir/file.txt')
│ root │ │ name │ ext │
" / home/user/dir / file .txt "
└──────┴──────────────┴──────┴─────┘
(all spaces in the "" line should be ignored -- they're purely for formatting)
(all spaces in the "" line should be ignored -- they are purely for formatting)
```

On Windows:
Expand All @@ -391,7 +391,7 @@ path.parse('C:\\path\\dir\\file.txt')
│ root │ │ name │ ext │
" C:\ path\dir \ file .txt "
└──────┴──────────────┴──────┴─────┘
(all spaces in the "" line should be ignored -- they're purely for formatting)
(all spaces in the "" line should be ignored -- they are purely for formatting)
```

A [`TypeError`][] is thrown if `path` is not a string.
Expand Down