Skip to content

v2.2.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 14:13
· 101 commits to main since this release

KaimonSlate v2.2.0

Diff since v2.1.0

Added

  • An HTML export can carry a table of contents. Turn on Contents in the export dialog, or add
    ?toc=1 to the export route, and the page gets a button that opens a side panel of the
    document's headings. The panel highlights the section you are reading, and each heading gets an
    anchor you can link to.
  • Print the live deck. A new PDF layout, "Slides — as presented (Chrome)", prints the
    deck as the audience sees it: the hub opens ?deck=print in headless Chrome, one page per slide
    at its last step, with the deck's own CSS. Text and SVG stay vector. export.pdf?layout=present,
    or export_pdf(notebook; layout = "present"). Steps "Every step" (steps=all) prints a page for
    each build step of a slide instead.
  • Format cells. "Format selected cell(s)" (⌘⌥L) and "Format all cells" in the command palette
    format code with Runic, on the hub, or Fatou, in the browser from its WASM build. A notebook's
    Formatter setting picks one; otherwise a fatou.toml up to the repository root selects Fatou,
    then the global default in Settings. Formatted text is applied only when it parses to the same
    program as the source. See "Formatting code" in the notebook basics.
  • The deck print, deck video and slide views run in Edge or Brave as well as Chrome or Chromium, and
    find a browser installed for one user. Without one, the Chrome layout and the video's Render button
    are disabled and say what is missing; a KAIMONSLATE_CHROME that names no file is reported as such.
  • A deck can be 16:10 (Settings → This notebook → Slide aspect ratio), the shape of a MacBook screen
    and of many projectors. The live deck, both slide PDF layouts and a rendered video use it. A
    video is now recorded at the deck's own ratio, so a 4:3 deck's video has no bars either.

Fixed

  • A slide in the PDF deck that is taller than the page shrinks to fit and keeps its items in order.
    The last items of a long list used to print on top of each other, with an empty bullet below them.
  • A figure in the PDF deck counts in the height of its slide. A figure is now 62% of the body
    region of the page, as a fixed length. Before, the figure height was a ratio that the slide
    measure resolved against an unbounded container, so a slide with text and two figures did not
    shrink and ran off the top and bottom of the page.
  • Markdown values keep their literal characters in the PDF and the Markdown export. A Markdown.MD
    value is exported in its text/markdown form, which Julia prints without escapes. A literal *, _,
    $ or ! before a link, and a line that starts with #, - or 1., came out as markup: _\* note_
    printed as ** note*, and \*a\* turned into italic text. A hard line break came out as a soft one.
    Slate now escapes the text of the value before it prints it, so a CommonMark reader gets the text the
    page shows. Code, formulas and link targets stay as they are. Brackets stay brackets in the PDF.
    The text form of an MD value (value_repr, which the {{ }} splice, agents and the debugger read)
    is now this escaped text, so a locked markdown cell that shows such a value is saved once more.
  • A deck video rendered from the record panel uses the editor's palette. The headless Chrome has no
    saved theme, so every capture came out in the default palette. A notebook URL takes
    ?slatetheme=<name> to set the palette for that page, and slide_view and render_deck take a
    theme argument.
  • An exported HTML page whose only rich output is charts draws them. The chart runtime called
    Slate.roots(), which is defined only on a page with data assets, so on any other page it
    stopped before mounting a chart.
  • The deck's contact sheet and the presenter's slide previews draw a diagram's arrowheads and other
    parts that its SVG refers to by id. A copy of a slide now has ids of its own.
  • A worker that rebuilds its notebook's environment (on the first open under a new Julia, for one)
    no longer crashes while the hub indexes the notebook's docs. A package operation in a worker
    leaves compiling to the background pass that shows "Preparing packages", and docs indexing
    waits until the environment is ready.
  • A cell that stops importing a name the notebook provides, such as echart, no longer takes that
    name away. Removing the globals no cell defines any more now leaves the names a notebook starts with.

Merged pull requests:

  • Format code cells with Runic or Fatou (#81) (@kahliburke)
  • Add an optional table of contents to the HTML export (#82) (@disberd)
  • Paint headless deck captures in the author's palette (#84) (@disberd)
  • Print the live deck to a PDF in headless Chrome (#85) (@disberd)
  • Fit tall slides and their figures in the slides PDF (#86) (@disberd)
  • Escape the text of a Markdown value in its markdown export form (#87) (@disberd)