Skip to content

Commit dcb650e

Browse files
mairawRon Petrusha
andauthored
markdig fixes - Part 10 (#2687)
* markdig fixes * Apply suggestions from peer review Co-Authored-By: Ron Petrusha <[email protected]>
1 parent a03947b commit dcb650e

File tree

10 files changed

+35
-32
lines changed

10 files changed

+35
-32
lines changed

xml/System.IdentityModel.Tokens/SessionSecurityTokenHandler.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,11 @@
482482
<format type="text/markdown"><![CDATA[
483483
484484
## Remarks
485-
The following type URIs are supported: "http://schemas.microsoft.com/ws/2006/05/servicemodel/tokens/SecureConversation", "http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct", and "http://schemas.xmlsoap.org/ws/2005/02/sc/sct".
485+
The following type URIs are supported:
486+
487+
- `http://schemas.microsoft.com/ws/2006/05/servicemodel/tokens/SecureConversation`
488+
- `http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct`
489+
- `http://schemas.xmlsoap.org/ws/2005/02/sc/sct`.
486490
487491
]]></format>
488492
</remarks>

xml/System.Net/HttpWebRequest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
104104
105105
## Examples
106-
The following code example creates an <xref:System.Net.HttpWebRequest> for the URI http://www.contoso.com/.
106+
The following code example creates an <xref:System.Net.HttpWebRequest> for the URI `http://www.contoso.com/`.
107107
108108
[!code-cpp[Classic HttpWebRequest Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic HttpWebRequest Example/CPP/source.cpp#1)]
109109
[!code-csharp[Classic HttpWebRequest Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic HttpWebRequest Example/CS/source.cs#1)]

xml/System.Net/WebProxy.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@
861861
## Remarks
862862
The setting of the <xref:System.Net.WebProxy.BypassProxyOnLocal%2A> property determines whether <xref:System.Net.WebRequest> instances use the proxy server when accessing local Internet resources.
863863
864-
If <xref:System.Net.WebProxy.BypassProxyOnLocal%2A> is `true`, requests to local Internet resources do not use the proxy server. Local requests are identified by the lack of a period (.) in the URI, as in http://webserver/, or access the local server, including http://localhost, http://loopback, or http://127.0.0.1. When <xref:System.Net.WebProxy.BypassProxyOnLocal%2A> is `false`, all Internet requests are made through the proxy server.
864+
If <xref:System.Net.WebProxy.BypassProxyOnLocal%2A> is `true`, requests to local Internet resources do not use the proxy server. Local requests are identified by the lack of a period (.) in the URI, as in `http://webserver/`, or access the local server, including `http://localhost`, `http://loopback`, or `http://127.0.0.1`. When <xref:System.Net.WebProxy.BypassProxyOnLocal%2A> is `false`, all Internet requests are made through the proxy server.
865865
866866
> [!NOTE]
867867
> Requests to a local host with a URI that contain a period use the proxy. To avoid using a proxy in these cases, create an entry for the host in the <xref:System.Net.WebProxy.BypassList%2A>.
@@ -1183,7 +1183,7 @@
11831183
11841184
<xref:System.Net.WebProxy.IsBypassed%2A> returns `true` under any of the following conditions:
11851185
1186-
- If <xref:System.Net.WebProxy.BypassProxyOnLocal%2A> is `true` and `host` is a local URI. Local requests are identified by the lack of a period (.) in the URI, as in "http://webserver/".
1186+
- If <xref:System.Net.WebProxy.BypassProxyOnLocal%2A> is `true` and `host` is a local URI. Local requests are identified by the lack of a period (.) in the URI, as in `http://webserver/`.
11871187
11881188
- If `host` matches a regular expression in <xref:System.Net.WebProxy.BypassList%2A>.
11891189

xml/System/ApplicationIdentity.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ http://testserver/ActivationContext/ActivationContext.application
187187
## Remarks
188188
The following are two examples of <xref:System.ApplicationIdentity.CodeBase%2A> property values for an application named ActivationContext:
189189
190-
- http://testserver/ActivationContext/ActivationContext.application
190+
- `http://testserver/ActivationContext/ActivationContext.application`
191191
192-
- file://C:/UserFiles/UserName/SolutionName/ActivationContext/publish/ActivationContext.application.
192+
- `file://C:/UserFiles/UserName/SolutionName/ActivationContext/publish/ActivationContext.application`.
193193
194194
195195

xml/System/Decimal.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4695,7 +4695,7 @@
46954695
|<xref:System.Globalization.NumberStyles.AllowThousands>|The *,* element.|
46964696
|<xref:System.Globalization.NumberStyles.AllowCurrencySymbol>|The *$* element.|
46974697
|<xref:System.Globalization.NumberStyles.Currency>|All. The `s` parameter cannot represent a hexadecimal number or a number in exponential notation.|
4698-
|<xref:System.Globalization.NumberStyles.Float>|The *ws* element at the beginning or end of `s`, *sign* at the beginning of `s`, and the *.*symbol. The `s` parameter can also use exponential notation.|
4698+
|<xref:System.Globalization.NumberStyles.Float>|The *ws* element at the beginning or end of `s`, *sign* at the beginning of `s`, and the *.* symbol. The `s` parameter can also use exponential notation.|
46994699
|<xref:System.Globalization.NumberStyles.Number>|The `ws`, `sign`, *,*, and *.* elements.|
47004700
|<xref:System.Globalization.NumberStyles.Any>|All styles, except `s` cannot represent a hexadecimal number.|
47014701

xml/System/String.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5791,7 +5791,9 @@ This method uses the [composite formatting feature](~/docs/standard/base-types/c
57915791
[!INCLUDE[provider-string-format](~/includes/provider-string-format.md)]
57925792

57935793
<a name="culture-sensitive-formatting" />
5794-
## Example: Culture-sensitive formatting
5794+
5795+
### Example: Culture-sensitive formatting
5796+
57955797
This example uses the <xref:System.String.Format%28System.IFormatProvider%2CSystem.String%2CSystem.Object%5B%5D%29> method to display the string representation of some date and time values and numeric values by using several different cultures.
57965798

57975799
[!code-csharp-interactive[System.String.Format2#2](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.String.Format2/cs/Example2.cs#2)]

xml/System/Uri.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ Uri uri2 = new Uri("file:///C:/test/path/file.txt") // Explicit file path.
477477
478478
479479
## Examples
480-
The following example creates a <xref:System.Uri> instance for the URI http://www.contoso.com/Hello%20World.htm. Because the contained URI is completely escaped and is in canonical form, the `dontEscape` parameter can be set to `true`.
480+
The following example creates a <xref:System.Uri> instance for the URI `http://www.contoso.com/Hello%20World.htm`. Because the contained URI is completely escaped and is in canonical form, the `dontEscape` parameter can be set to `true`.
481481
482482
[!code-cpp[Classic Uri.Uri1 Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic Uri.Uri1 Example/CPP/source.cpp#1)]
483483
[!code-csharp[Classic Uri.Uri1 Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic Uri.Uri1 Example/CS/source.cs#1)]
@@ -701,7 +701,7 @@ Uri uri2 = new Uri("file:///C:/test/path/file.txt") // Explicit file path.
701701
702702
703703
## Examples
704-
The following example creates a new instance of the <xref:System.Uri> class by combining the relative URIs http://www.contoso.com and catalog/shownew.htm to form the absolute URI http://www.contoso.com/catalog/shownew.htm.
704+
The following example creates a new instance of the <xref:System.Uri> class by combining the relative URIs `http://www.contoso.com` and `catalog/shownew.htm` to form the absolute URI `http://www.contoso.com/catalog/shownew.htm`.
705705
706706
[!code-cpp[Classic Uri.Uri3 Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic Uri.Uri3 Example/CPP/source.cpp#1)]
707707
[!code-csharp[Classic Uri.Uri3 Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic Uri.Uri3 Example/CS/source.cs#1)]
@@ -1112,7 +1112,7 @@ Uri uri2 = new Uri("file:///C:/test/path/file.txt") // Explicit file path.
11121112
11131113
11141114
## Examples
1115-
The following example writes the complete contents of the <xref:System.Uri> instance to the console. In the example shown, http://www.contoso.com/catalog/shownew.htm?date=today is written to the console.
1115+
The following example writes the complete contents of the <xref:System.Uri> instance to the console. In the example shown, `http://www.contoso.com/catalog/shownew.htm?date=today` is written to the console.
11161116
11171117
[!code-cpp[Classic Uri.AbsoluteUri Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic Uri.AbsoluteUri Example/CPP/source.cpp#1)]
11181118
[!code-csharp[Classic Uri.AbsoluteUri Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic Uri.AbsoluteUri Example/CS/source.cs#1)]
@@ -1609,7 +1609,7 @@ If you used an escaped string to construct this instance (for example, "http://[
16091609
<format type="text/markdown"><![CDATA[
16101610
16111611
## Remarks
1612-
The <xref:System.Uri.Equals%2A> method compares the two instances without regard to user information (<xref:System.Uri.UserInfo%2A>) and fragment (<xref:System.Uri.Fragment%2A>) parts that they might contain. For example, given the URIs http://www.contoso.com/index.htm#search and http://user:[email protected]/index.htm, the <xref:System.Uri.Equals%2A> method would return `true`.
1612+
The <xref:System.Uri.Equals%2A> method compares the two instances without regard to user information (<xref:System.Uri.UserInfo%2A>) and fragment (<xref:System.Uri.Fragment%2A>) parts that they might contain. For example, given the URIs `http://www.contoso.com/index.htm#search` and `http://user:[email protected]/index.htm`, the <xref:System.Uri.Equals%2A> method would return `true`.
16131613
16141614
If one <xref:System.Uri> instance is formed with a Unicode host name and `comparand` parameter contains a <xref:System.Uri> instance or identifier that is formed with a host name that has the equivalent Punycode host name, then <xref:System.Uri.Equals%2A> returns `true` only if International Resource Identifier (IRI) and Internationalized Domain Name (IDN) support are enabled. Punycode names contain only ASCII characters and always start with the xn-- prefix.
16151615
@@ -1900,7 +1900,7 @@ If you used an escaped string to construct this instance (for example, "http://[
19001900
<format type="text/markdown"><![CDATA[
19011901
19021902
## Remarks
1903-
The <xref:System.Uri.Fragment%2A> property gets any text following a fragment marker (#) in the URI, including the fragment marker itself. Given the URI http://www.contoso.com/index.htm#main, the <xref:System.Uri.Fragment%2A> property would return #main.
1903+
The <xref:System.Uri.Fragment%2A> property gets any text following a fragment marker (#) in the URI, including the fragment marker itself. Given the URI `http://www.contoso.com/index.htm#main`, the <xref:System.Uri.Fragment%2A> property would return #main.
19041904
19051905
The <xref:System.Uri.Fragment%2A> property is not considered in any <xref:System.Uri.Equals%2A> comparison.
19061906
@@ -3841,7 +3841,7 @@ If you used an escaped string to construct this instance (for example, "http://[
38413841
38423842
38433843
## Examples
3844-
The following example writes the scheme name (http) to the console for the http://www.contoso.com/ URI.
3844+
The following example writes the scheme name (http) to the console for the `http://www.contoso.com/` URI.
38453845
38463846
[!code-cpp[Classic Uri.Scheme Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic Uri.Scheme Example/CPP/source.cpp#1)]
38473847
[!code-csharp[Classic Uri.Scheme Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic Uri.Scheme Example/CS/source.cs#1)]
@@ -3940,7 +3940,7 @@ If you used an escaped string to construct this instance (for example, "http://[
39403940
The following example shows the absolute path and segments for two URIs. The second example illustrates that the fragment and query are not part of the absolute path and therefore are not segments.
39413941
39423942
Absolute URI:
3943-
http://www.contoso.com/Chapters/Chapter1/Sections/Section1.htm
3943+
`http://www.contoso.com/Chapters/Chapter1/Sections/Section1.htm`
39443944
39453945
Absolute path:
39463946
/Chapters/Chapter1/Sections/Section1.htm
@@ -3953,7 +3953,7 @@ If you used an escaped string to construct this instance (for example, "http://[
39533953
- Section1.htm
39543954
39553955
Absolute URI:
3956-
http://www.contoso.com/Chapters/Chapter1/Sections/Section1.htm#page1?answer=NO
3956+
`http://www.contoso.com/Chapters/Chapter1/Sections/Section1.htm#page1?answer=NO`
39573957
39583958
Absolute path:
39593959
/Chapters/Chapter1/Sections/Section1.htm
@@ -4901,4 +4901,4 @@ If you used an escaped string to construct this instance (for example, "http://[
49014901
</Docs>
49024902
</Member>
49034903
</Members>
4904-
</Type>
4904+
</Type>

xml/System/UriBuilder.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
266266
267267
## Examples
268-
The following example creates a <xref:System.UriBuilder> instance that contains the URI http://www.contoso.com/.
268+
The following example creates a <xref:System.UriBuilder> instance that contains the URI `http://www.contoso.com/`.
269269
270270
[!code-cpp[Classic UriBuilder.UriBuilder3 Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder3 Example/CPP/source.cpp#1)]
271271
[!code-csharp[Classic UriBuilder.UriBuilder3 Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder3 Example/CS/source.cs#1)]
@@ -324,7 +324,7 @@
324324
325325
326326
## Examples
327-
The following example creates a <xref:System.UriBuilder> instance that contains the URI http://www.contoso.com:8080/.
327+
The following example creates a <xref:System.UriBuilder> instance that contains the URI `http://www.contoso.com:8080/`.
328328
329329
[!code-cpp[Classic UriBuilder.UriBuilder4 Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder4 Example/CPP/source.cpp#1)]
330330
[!code-csharp[Classic UriBuilder.UriBuilder4 Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder4 Example/CS/source.cs#1)]
@@ -387,7 +387,7 @@
387387
388388
389389
## Examples
390-
The following example creates a <xref:System.UriBuilder> instance that contains the URI http://www.contoso.com:8080/index.htm.
390+
The following example creates a <xref:System.UriBuilder> instance that contains the URI `http://www.contoso.com:8080/index.htm`.
391391
392392
[!code-cpp[Classic UriBuilder.UriBuilder5 Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder5 Example/CPP/source.cpp#1)]
393393
[!code-csharp[Classic UriBuilder.UriBuilder5 Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder5 Example/CS/source.cs#1)]
@@ -452,7 +452,7 @@
452452
453453
454454
## Examples
455-
The following example creates a <xref:System.UriBuilder> instance that contains the URI http://www.contoso.com:8080/index.htm#top.
455+
The following example creates a <xref:System.UriBuilder> instance that contains the URI `http://www.contoso.com:8080/index.htm#top`.
456456
457457
[!code-cpp[Classic UriBuilder.UriBuilder6 Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder6 Example/CPP/source.cpp#1)]
458458
[!code-csharp[Classic UriBuilder.UriBuilder6 Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic UriBuilder.UriBuilder6 Example/CS/source.cs#1)]
@@ -565,7 +565,7 @@
565565
566566
567567
## Examples
568-
The following example creates the URI "http://www.contoso.com/index.htm#main".
568+
The following example creates the URI `"http://www.contoso.com/index.htm#main"`.
569569
570570
[!code-cpp[Classic UriBuilder.Fragment Example#1](~/samples/snippets/cpp/VS_Snippets_Remoting/Classic UriBuilder.Fragment Example/CPP/source.cpp#1)]
571571
[!code-csharp[Classic UriBuilder.Fragment Example#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Classic UriBuilder.Fragment Example/CS/source.cs#1)]
@@ -614,7 +614,7 @@
614614
<format type="text/markdown"><![CDATA[
615615
616616
## Remarks
617-
The hash code is generated without including any fragment. The URIs http://www.contoso.com/index.htm#search and http://www.contoso.com/index.htm generate the same hash code.
617+
The hash code is generated without including any fragment. The URIs `http://www.contoso.com/index.htm#search` and `http://www.contoso.com/index.htm` generate the same hash code.
618618
619619
The hash codes for <xref:System.Uri> A and B are guaranteed to be the same when A.Equals(B) is `true`.
620620

xml/System/UriTemplate.xml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,12 @@
142142
<format type="text/markdown"><![CDATA[
143143
144144
## Remarks
145-
When the `ignoreTrailingSlash` is set to `true`, trailing slashes on the end of template are ignored when matching a candidate URI. For example, a template such as "http://www.microsoft.com/customer/" would match the following candidate URIs:
145+
When the `ignoreTrailingSlash` is set to `true`, trailing slashes on the end of template are ignored when matching a candidate URI. For example, a template such as `http://www.microsoft.com/customer/` would match the following candidate URIs:
146146
147-
- "http://www.microsoft.com/customer/"
148-
149-
- "http://www.microsoft.com/customer"
150-
151-
- "http://www.microsoft.com/customer/?wsdl"
152-
153-
- "http://www.microsoft.com/customer?wsdl"
147+
- `http://www.microsoft.com/customer/`
148+
- `http://www.microsoft.com/customer`
149+
- `http://www.microsoft.com/customer/?wsdl`
150+
- `http://www.microsoft.com/customer?wsdl`
154151
155152
]]></format>
156153
</remarks>

xml/ns-System.Xml.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
</xs:schema>
160160
```
161161
162-
If you try to validate the following XML against the schema above, the validation will fail with the following exception: "Unhandled Exception: System.Xml.Schema.XmlSchemaValidationException: The 'e2' el element is invalid - The value 'abc' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:int' - The string 'abc' is not a valid Int32 value."
162+
If you try to validate the following XML against the schema above, the validation will fail with the following exception: "Unhandled Exception: System.Xml.Schema.XmlSchemaValidationException: The 'e2' el element is invalid - The value 'abc' is invalid according to its datatype `'http://www.w3.org/2001/XMLSchema:int'` - The string 'abc' is not a valid Int32 value."
163163
164164
```xml
165165
<e3><e2>abc</e2></e3>

0 commit comments

Comments
 (0)