Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmartyPantsExtension"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public SmartyPantsExtension(SmartyPantOptions options)
 {
     Options = options ?? new SmartyPantOptions();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HtmlSmartyPantRenderer"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <exception cref="ArgumentNullException"></exception>
 public HtmlSmartyPantRenderer(SmartyPantOptions options)
 {
     this.options = options ?? throw new ArgumentNullException(nameof(options));
 }