ZMarkupParser Versions Save

ZMarkupParser is a pure-Swift library that helps you convert HTML strings into NSAttributedString with customized styles and tags.

v1.3.7

1 year ago
  • Added support for parsing <s>/<em>/<pre>/<blockquote>/<code> HTML tags.

v1.3.6

1 year ago
  • Remove redundant spaces if the

    tag is empty or is a self-closing tag. #16

  • Add support for rendering HTML entities by default. #14

v1.3.5

1 year ago
  • support rendering <h1>/<h2>/<h3>/<h4>/<h5>/<h6> to correspond with their respective sizes.*1

*1 you can modify them in the builder during runtime by using ZHTMLParserBuilder.initWithDefault().add(H1_HTMLTagName(), withCustomStyle: MarkupStyle(font: MarkupStyleFont(size: 18, weight: .style(.semibold)))).build().

Thanks to @makhocheung for noticing that I missed supporting H tags. #12

v1.3.3

1 year ago
  • add MarkupStylePolicy, you can specify in ZHTMLParserBuilder to decide HTML Style Attribute merge policy
  • fix performance tests
  • add Technical Detail

v1.3.2

1 year ago
  • fixed <table> format
  • increase test coverage

v1.3.0

1 year ago
  • support parser <img>/<tr>/<td>/<tr> officially 🎉, you can use ZMarkupPaser render image tag currently!
  • code optimization, remove unused struct, make markup tree clean
  • optimization list item present

#7 , #5 , #6

v1.2.5

1 year ago
  • Fix Extend Style Attribute

v1.2.4

1 year ago
  • bug fixed
  • add more tests

v1.2.1

1 year ago
  • fix memory leak

v1.1.9

1 year ago
  • fix render result should be nil if markstyle is nil