@@ -61,8 +61,10 @@ internal class XmlHelper
61
61
{ @"\<(see|seealso){1} cref\=""object""[ ]*\/\>" , "<see cref=\" T:System.Object\" />" } ,
62
62
{ @"\<(see|seealso){1} cref\=""dynamic""[ ]*\/\>" , "<see langword=\" dynamic\" />" } ,
63
63
{ @"\<(see|seealso){1} cref\=""string""[ ]*\/\>" , "<see cref=\" T:System.String\" />" } ,
64
- { @"<code data-dev-comment-type=""(?<elementName>[a-zA-Z0-9_]+)"">(?<elementValue>[a-zA-Z0-9_]+)</code>" , "<see ${elementName}=\" ${elementValue}\" />" } ,
65
- { @"<xref data-throw-if-not-resolved=""[a-zA-Z0-9_]+"" uid=""(?<docId>[a-zA-Z0-9_,\<\>\.\@\#\$%^&`\(\)]+)""><\/xref>" , "<see cref=\" T:${docId}\" />" } ,
64
+ { @"<code data-dev-comment-type=""langword"">(?<elementValue>[a-zA-Z0-9_]+)</code>" , "<see langword=\" ${elementValue}\" />" } ,
65
+ { @"<code data-dev-comment-type=""paramref"">(?<elementValue>[a-zA-Z0-9_]+)</code>" , "<paramref name=\" ${elementValue}\" />" } ,
66
+ { @"<code data-dev-comment-type=""typeparamref"">(?<elementValue>[a-zA-Z0-9_]+)</code>" , "<typeparamref name=\" ${elementValue}\" />" } ,
67
+ { @"<xref data-throw-if-not-resolved=""[a-zA-Z0-9_]+"" uid=""(?<docId>[a-zA-Z0-9_,\<\>\.\@\#\$%^&`\(\)]+)""(><\/xref>|[ ]*/>)" , "<see cref=\" T:${docId}\" />" } ,
66
68
} ;
67
69
68
70
private static readonly Dictionary < string , string > _replaceableMarkdownPatterns = new Dictionary < string , string > {
@@ -123,7 +125,7 @@ internal class XmlHelper
123
125
{ @"\<(typeparamref|paramref){1} name\=""(?'refNameContents'[a-zA-Z0-9_\-]+)""[ ]*\/\>" , @"`${refNameContents}`" } ,
124
126
{ @"\<see langword\=""(?'seeLangwordContents'[a-zA-Z0-9_\-]+)""[ ]*\/\>" , @"`${seeLangwordContents}`" } ,
125
127
{ @"<code data-dev-comment-type=""[a-zA-Z0-9_]+"">(?<elementValue>[a-zA-Z0-9_]+)</code>" , "`${elementValue}`" } ,
126
- { @"<xref data-throw-if-not-resolved=""[a-zA-Z0-9_]+"" uid=""(?<docId>[a-zA-Z0-9_,\<\>\.]+)""><\/xref>" , "<xref:${docId}>" } ,
128
+ { @"<xref data-throw-if-not-resolved=""[a-zA-Z0-9_]+"" uid=""(?<docId>[a-zA-Z0-9_,\<\>\.]+)""( ><\/xref>|[ ]*/>) " , "<xref:${docId}>" } ,
127
129
} ;
128
130
129
131
private static readonly string [ ] _splittingSeparators = new string [ ] { "\r " , "\n " , "\r \n " } ;
0 commit comments