Scoria

Reading view

Reading view is the note as a finished document: no markers, no cursor, links you click. Ctrl + E (markdown:toggle-preview) toggles between it and editing.

Whether a note opens here depends on your vault: defaultViewMode in app.json is either preview (reading view) or editing, and Scoria follows it.

What is rendered

HeadingsLevels 1–6, scaled
ParagraphsWith soft line breaks — a single newline is a <br> unless strictLineBreaks is on
Emphasis*italic*, **bold**, ~~strike~~, ==highlight==
Inline codeWith the monospace font
Links[[Wikilinks]], Markdown links, and bare URLs — all clickable
TagsClickable, and counted in the Tags pane
ImagesLocal files and https:// images, with Obsidian's size hints: ![[pic.png|200x100]]. A web image is downloaded when it is drawn
EmbedsWhole notes, #Heading sections and #^block references, nested up to four deep
ListsBulleted, numbered, and task items with checkboxes
QuotesA bar per nesting level
CalloutsWith each type's color and icon, and their fold state
TablesWith column alignment, laid out as described below
Code blocksHighlighted, with a language label; long lines scroll rather than wrap
Mermaid diagramsDrawn as diagrams
MathInline and $$ blocks, typeset
HTMLThe common tags
FrontmatterAs a properties block at the top of the note
FootnotesNumbered by order of first reference, collected at the end

All of it is drawn from the same parse the editor and the link index use, so what you read and what the panes list cannot disagree.

Notes with embedded photographs and SVG charts, an image file opened in its own tab, a canvas zoomed in from the whole diagram to its text cards, note embeds and image nodes joined by labelled edges, then the graph view settling.
Photographs and SVG charts embedded with ![[file|width]], an image opened as its own tab, a .canvas with text cards, note cards and image nodes joined by labelled edges, and the graph view laying the vault out.

Clicking things

  • A wikilink or Markdown link to a note opens it.
  • [[Note#Heading]] opens the note scrolled to that heading.
  • [[Note#^block-id]] opens it scrolled to that block.
  • A tag searches the vault for it.
  • A footnote reference jumps to the definition.
  • A task checkbox toggles it. The edit takes the same path a Live Preview click takes — one undo step, written back by the autosave — and the view rebuilds from that buffer.
  • A code block's copy button copies the block and shows a check for a moment.
  • A link inside an embedded note works, and opens the note it points at — not the note the embed is in.

How tables lay out

A column is as wide as its content needs when there is room, and the columns share the space when there is not. This is how a browser lays out the tables Obsidian draws, and Scoria works it out with the real font's measurements:

  1. Each column wants the width of its widest cell.
  2. Each column needs at least the width of its longest unbreakable word.
  3. If the sum of the wishes fits the note's width, every column gets its wish.
  4. Otherwise the slack between each column's minimum and its wish is shared out in proportion.

The practical consequence, and the reason it was worth implementing rather than giving every column an equal share: a table with one long identifier in it does not break that identifier across lines, and a narrow column does not get the same width as a wide one.

Fenced code blocks never wrap. A long line scrolls sideways inside its own block.

Long notes

The view lays out one item per top-level block, measured lazily, so only what is on screen is ever laid out. A 50,000-line note opens and scrolls like a short one.

Not yet

The gaps, honestly — none of these are in reading view today:

Not drawnWhat you see instead
MathJax-only syntaxThe source, in red; the common TeX that KaTeX also takes is typeset
Most of an inline style attributeThe element with only its color, background, weight, slant and line
<iframe>, <form> and other tags Scoria has no drawing forTheir source
Editing a propertyA value's pill can be removed here and, after 0.7.0, Add alias types a new alias; edit the rest in Live Preview or in the File properties pane, which edits in reading view too

Frontmatter edge cases match Obsidian: a <script> in a note is removed, unknown HTML elements are unwrapped, and a raw <a> gains target and rel.

Next

Source: sites/scoria/content/docs/app/reading-view.md