FIx typo in documentation

The use of the vertical bar seems to break the rendering of the table in the documentation here:
http://rapidjson.org/md_doc_schema.html

Seems like we can fix it by using html encoding for the vertical bars as described in this post:
http://stackoverflow.com/questions/17319940/how-to-escape-a-pipe-char-in-a-code-statement-in-a-markdown-table/17320389#17320389
This commit is contained in:
Yu Chen Hou 2016-10-04 14:07:50 -07:00 committed by GitHub
parent b4dae2b77d
commit 48f8364f65

View File

@ -157,7 +157,7 @@ As `SchemaDocument` does not know how to resolve such URI, it needs a user-provi
~~~ ~~~
class MyRemoteSchemaDocumentProvider : public IRemoteSchemaDocumentProvider { class MyRemoteSchemaDocumentProvider : public IRemoteSchemaDocumentProvider {
public: public:
virtual const SchemaDocument* GetRemoteDocument(const char* uri, SizeTyp length) { virtual const SchemaDocument* GetRemoteDocument(const char* uri, SizeType length) {
// Resolve the uri and returns a pointer to that schema. // Resolve the uri and returns a pointer to that schema.
} }
}; };
@ -185,7 +185,7 @@ RapidJSON implemented a simple NFA regular expression engine, which is used by d
|Syntax|Description| |Syntax|Description|
|------|-----------| |------|-----------|
|`ab` | Concatenation | |`ab` | Concatenation |
|`a|b` | Alternation | |<code>a&#124;b</code> | Alternation |
|`a?` | Zero or one | |`a?` | Zero or one |
|`a*` | Zero or more | |`a*` | Zero or more |
|`a+` | One or more | |`a+` | One or more |
@ -202,7 +202,7 @@ RapidJSON implemented a simple NFA regular expression engine, which is used by d
|`[^abc]` | Negated character classes | |`[^abc]` | Negated character classes |
|`[^a-c]` | Negated character class range | |`[^a-c]` | Negated character class range |
|`[\b]` | Backspace (U+0008) | |`[\b]` | Backspace (U+0008) |
|`\|`, `\\`, ... | Escape characters | |<code>\\&#124;</code>, `\\`, ... | Escape characters |
|`\f` | Form feed (U+000C) | |`\f` | Form feed (U+000C) |
|`\n` | Line feed (U+000A) | |`\n` | Line feed (U+000A) |
|`\r` | Carriage return (U+000D) | |`\r` | Carriage return (U+000D) |