Class MarkdownTagValidationRule
Inherited Members
Namespace: Microsoft.DocAsCode.Plugins
Assembly: Microsoft.DocAsCode.Plugins.dll
Syntax
public class MarkdownTagValidationRule
Properties
| Improve this Doc View SourceBehavior
Define tag's behavior.
Declaration
[JsonProperty("behavior", Required = Required.Always)]
public TagValidationBehavior Behavior { get; set; }
Property Value
Type | Description |
---|---|
TagValidationBehavior |
CustomValidatorContractName
The contract name for custom validator ICustomMarkdownTagValidator.
Declaration
[JsonProperty("customValidatorContractName")]
public string CustomValidatorContractName { get; set; }
Property Value
Type | Description |
---|---|
String |
Disable
Whether to disable this rule by default.
Declaration
[JsonProperty("disable")]
public bool Disable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
MessageFormatter
The message formatter for warning and error. '{0}' is name of tag, '{1}' is the full tag.
Declaration
[JsonProperty("messageFormatter", Required = Required.Always)]
public string MessageFormatter { get; set; }
Property Value
Type | Description |
---|---|
String |
OpeningTagOnly
Only validate opening tag.
Declaration
[JsonProperty("openingTagOnly")]
public bool OpeningTagOnly { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Relation
The relation for tags.
Declaration
[JsonProperty("relation")]
public TagRelation Relation { get; set; }
Property Value
Type | Description |
---|---|
TagRelation |
TagNames
The names of tag.
Declaration
[JsonProperty("tagNames", Required = Required.Always)]
public List<string> TagNames { get; set; }
Property Value
Type | Description |
---|---|
List<String> |