Skip to content

0.3.14

Choose a tag to compare

@dotvav dotvav released this 14 Sep 09:29
· 1 commit to main since this release

Full Changelog: v0.3.13...v0.3.14

What's Changed

  • Preserve Quoted Authors: Extracted the author username from ... a écrit : within citation tables () during HTML to BBCode conversion.
  • Pluggable user_resolver:
    • Introduced the UserResolver type (dict[str, int] or Callable[[str], Optional[int]]).
    • Propagated user_resolver throughout the conversion pipeline: bb.html_to_bb(), Message.from_lxml(), Topic.
      parse_page_html(), Topic.load_page(), and HFRClient.
  • Automatic Page-Level Directory: Topic.parse_page_html() automatically extracts a {pseudo: user_id} mapping from all
    visible messages on the current page to resolve local intra-page citations without requiring external lookups.
  • Enhanced BBCode Output:
    • Emits [quotemsg=msg_id,ref,user_id] when a valid non-zero user_id is resolved.
    • Falls back to [quote=Pseudo]...[/quote] when user_id is missing but the author name is known, avoiding anonymous or
      dummy user_id=0 tags.