Commit Graph

30 Commits

Author SHA1 Message Date
Brent Simmons 8aa2a1109e Fix deprecation warnings. 2024-02-25 21:09:25 -08:00
Nate Weaver 643b9f4659 Make sure range.location isn't out-of-bounds
Fix for #2512.
2020-10-20 12:05:52 -05:00
Maurice Parker 6b45a72707 Change unread indicator font and weight to match existing iOS parameters 2020-07-03 20:03:36 -05:00
Maurice Parker 4393e54a5c Fix unread indicator color 2020-07-03 19:41:38 -05:00
Nate Weaver 688b24f18e Swap baseDescriptor and currentDescriptor to allow semibold to come through 2020-05-01 01:56:19 -05:00
Nate Weaver 37f1ebc025 Remove the color parameter as it's no longer needed 2020-05-01 01:45:12 -05:00
Nate Weaver cc0bfd95b2 Add a comment 2020-05-01 01:42:44 -05:00
Nate Weaver ae40172b7c Make superscript/subscript work again 2020-05-01 01:42:44 -05:00
Nate Weaver 5d8604714c Revert setting bold to heavy if the base font is semibold
- It was causing conflicts with nested bold + other styles.
- We don't want bold in titles anyway.
2020-05-01 01:42:44 -05:00
Nate Weaver 406a8e0cc0 Set weight for bold fonts 2020-05-01 01:42:44 -05:00
Nate Weaver d47767d8b4 Remove tagStack 2020-05-01 01:42:44 -05:00
Nate Weaver 951ffeb899 Move declaration/initialization of attributes dictionary closer to use 2020-05-01 01:42:44 -05:00
Nate Weaver cce4b56ee5 Fix building for iOS 2020-05-01 01:42:44 -05:00
Nate Weaver f38406e3ac Make the return type of CountedSet's subscript non-optional 2020-05-01 01:42:44 -05:00
Nate Weaver 62737bd94f Add <var> and <dfn> to italicized tags 2020-05-01 01:42:44 -05:00
Nate Weaver ec49030081 Consolidate some repeated code 2020-05-01 01:42:43 -05:00
Nate Weaver 2672dbb8f1 Remove old comment 2020-05-01 01:42:43 -05:00
Nate Weaver 8006d816a9 Style(tag:) -> Style(forTag:) 2020-05-01 01:42:43 -05:00
Nate Weaver fcbfce4ace Move duplicated code outside of the if 2020-05-01 01:42:43 -05:00
Nate Weaver b7916f7d31 Convert to an if-let since currentStyles are being stored instead of a single style 2020-05-01 01:42:43 -05:00
Nate Weaver 7f3b77b760 Quote nested <q> tags with alternating quote marks 2020-05-01 01:42:43 -05:00
Nate Weaver e6cbdb5d23 Remove font parameter 2020-05-01 01:42:43 -05:00
Nate Weaver ee4830022e Mark some stuff private 2020-05-01 01:42:43 -05:00
Nate Weaver d06e7447f0 Call out to RSParser for entity decoding 2020-05-01 01:42:43 -05:00
Nate Weaver e8d39ded0d tagBuf -> tag 2020-05-01 01:42:43 -05:00
Nate Weaver bdd5796a10 Use a custom CountedSet for styles so nested tags work 2020-05-01 01:42:43 -05:00
Nate Weaver b722e75d9e Use a nested function for superscript/subscript features 2020-05-01 01:42:43 -05:00
Nate Weaver fd672c5ce6 Add a custom HTML -> NSAttributedString initializer 2020-05-01 01:42:43 -05:00
Maurice Parker 86fb98c17b
Revert "WIP: Title tags" 2020-04-24 20:24:24 -05:00
Nate Weaver b437ddab5c Move NSAttributedString+NetNewsWire into Shared/Extensions 2020-04-24 18:25:56 -05:00