Changelog

v0.1.1

Related projects: Fusite

Fixes and improvements to how Notion content is rendered on published pages.

Fixed

  • Table cell rich text formatting: Table cells now preserve inline formatting from Notion (code, bold, italic, underline, strikethrough, links) instead of rendering as plain text
  • Added

  • Image width control via caption tag: Images support a [w:XX%] tag in the Notion caption to control display width (e.g. [w:60%]). The tag is stripped from the visible caption. Width defaults to 100% when no tag is present
  • Technical

  • Replaced manual plain_text extraction in processTableRowWithChildren() with processRichText() to apply Notion annotations
  • Added parseImageCaptionWidth() helper to parse and strip width tags from captions
  • Applied max-width style to the <figure> wrapper when a caption is present, or directly to the <img> when there is no caption, avoiding double-application
  • Updated three image rendering paths: processImage(), processImageWithS3(), and processNotionImage() in imageProcessor.ts