We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f24fb4 commit e0c56c0Copy full SHA for e0c56c0
.docfx/template/ManagedReference.extension.js
@@ -59,14 +59,8 @@ function updateTypeModelData(model) {
59
model.isDeprecated = true;
60
}
61
62
- if (model.isEnum && model.syntax?.content) {
63
- for (const content of model.syntax.content) {
64
- let value = new String(content.value);
65
- if (!value || value.search(/\[[\s\r\n]*Obsolete/) < 0)
66
- continue;
67
-
68
- content.value = value.replaceAll(/\][\s\r\n]*/, '<br />');
69
- }
+ if (model.isEnum && model.syntax?.content[0]?.value.search(/\[[\s\r\n]*Obsolete/) >= 0) {
+ model.syntax.content[0].value = model.syntax.content[0].value.replaceAll(/\][\s\r\n]*/, '<br />');
70
71
72
0 commit comments