You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.5 KiB

  1. namespace MarkdownSharp
  2. {
  3. /// <summary>
  4. /// Options for configuring MarkdownSharp.
  5. /// </summary>
  6. internal class MarkdownOptions
  7. {
  8. /// <summary>
  9. /// when true, (most) bare plain URLs are auto-hyperlinked
  10. /// WARNING: this is a significant deviation from the markdown spec
  11. /// </summary>
  12. public bool AutoHyperlink { get; set; }
  13. /// <summary>
  14. /// when true, RETURN becomes a literal newline
  15. /// WARNING: this is a significant deviation from the markdown spec
  16. /// </summary>
  17. public bool AutoNewlines { get; set; }
  18. /// <summary>
  19. /// use ">" for HTML output, or " />" for XHTML output
  20. /// </summary>
  21. public string EmptyElementSuffix { get; set; }
  22. /// <summary>
  23. /// when false, email addresses will never be auto-linked
  24. /// WARNING: this is a significant deviation from the markdown spec
  25. /// </summary>
  26. public bool LinkEmails { get; set; }
  27. /// <summary>
  28. /// when true, bold and italic require non-word characters on either side
  29. /// WARNING: this is a significant deviation from the markdown spec
  30. /// </summary>
  31. public bool StrictBoldItalic { get; set; }
  32. /// <summary>
  33. /// when true, asterisks may be used for intraword emphasis
  34. /// this does nothing if StrictBoldItalic is false
  35. /// </summary>
  36. public bool AsteriskIntraWordEmphasis { get; set; }
  37. }
  38. }