Skip to content

Releases

0.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Dec 15:43

Fixed

  • The size limit output_limit_mb counts a megabyte as 1,000,000 bytes, like the size shown in the findings; before, a page shown as 20.5 MB stayed below a limit of 20 MB without a warning.
  • The page is built without document.createElement in the plugin's own code (store review prefer-create-el, 25 warnings for 0.1.0); the exported page is byte for byte the same.

Changed

  • obsidian-kit 0.115.0 and code-kit 0.96.0: a note embedded as a block (![[note]]) no longer adds the warning guard.reparse.
  • The note link in the findings list opens a new tab with Ctrl or Cmd, like other links in Obsidian; a note that no longer exists is not created by the click.

0.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 22:34

Added

  • Export of a folder of notes, or of a single note, as one self-contained HTML page: commands Export folder as HTML page… and Export current note as HTML page, entries in the file menu of folders and notes, and the Hypertext Exporter panel with the tabs Export and Findings.
  • Export recipe: the hypertext: block in the front matter of the entry note names the sections, their order, groups, overview tables, summary lines, sources outside the folder and the title; German aliases for every key; Insert export recipe writes a starting block. Unknown keys are warnings, wrong values stop the run, keys that are not built yet are answered with a warning.
  • Notes become foldable blocks; callouts with - or + fold as written; sections of the entry note fold from a chosen heading level.
  • Stable anchors and jumps between the notes of the set; links to notes outside the set, links without a target and other schemes stay as text and are listed.
  • Overview tables and summary lines built from front matter fields; ordering by name, number prefix, first mention, or a field; grouping by one or two fields.
  • Recipe: sources in a section makes one group over several sources (for example Interviews > run > persona > interview), listed with its sources in the navigation; label names a value in the summary line (Status: planned); title_from takes the title of a field group from another field than the grouping value, with a finding set.group-title when the notes of a group disagree. Recipes without these keys keep their groups, titles and anchors; two sections naming the same source now show it once, with a warning.
  • Images, including SVG, are embedded in the page; images with a web address are not loaded. Audio, video and other attachments show their file name.
  • Search and fold helpers in the page: blocks without the words are hidden, blocks with them open and the words are highlighted, Expand all and Collapse all, the print view opens everything.
  • Findings list with fixed codes after every export, and a result file <note name>.export.json beside the page. The message of a finding follows the language of the Obsidian interface (English or German); the code is the contract.
  • Check HTML export rebuilds the page and compares it byte for byte; Open HTML export opens it.
  • Command line: obsidian eval with app.plugins.plugins['hypertext-exporter'].api.exportAndWait('<path>') runs an export and returns the result file.
  • Settings: where to save the page (beside the entry note, a folder in the vault, or the share sheet) and the export folder.
  • Light and dark colours that follow the reader's device; a layout that needs no sideways scrolling at 390 pixels.
  • Documentation: README in English and German, getting started, recipe and findings reference, security and determinism, troubleshooting.

Security

  • Text from a note does not become a program in the page: Obsidian's renderer, then a protection pass of the plugin (scripts, event attributes, javascript: targets, frames, forms, <base>), then a content security policy with checksums, default-src 'none'.
  • The protection pass reads the tree of each note again until it is stable (code-kit 0.89.0): a note whose content does not settle after three rounds is not taken over and stops the run with guard.reparse and the path of the note; links in the body, <meta http-equiv>, name on images, fixed or sticky positions and popover attributes are removed.
  • A second protection pass runs on the finished page read back from its text; if it still finds active content, nothing is written.
  • The finished page is checked for app://, capacitor://, file:// and the path of the vault; a hit stops the run.
  • Raw frames in note text are replaced before drawing; the recipe switch blocks decides which code blocks other plugins may draw.

Known limits

  • On iPhone and iPad the Files app shows the page in a preview without its script: folded sections open and close, search and Expand all are missing, and its share sheet offers no browser. Served from a web address, Safari on an iPhone runs the page with search; a large page (10 MB measured) does not load completely there.
  • Mermaid diagrams need a recent Obsidian: under Obsidian 1.12.4 they are left out of the page with a finding (see the README).