Skip to content

v1.5.2

Choose a tag to compare

@github-actions github-actions released this 29 Aug 16:14
· 547 commits to main since this release

Added

  • Editing in the preview carries on from block to block: down from the last line of a block opens the one below, up from the first line opens the one above, and down from the last block opens the blank space under the document. Editing one block then reaching for the mouse to start the next is not how anyone writes. Inside a block of several lines the arrows still move the caret
  • Selecting text in the editor floats a small toolbar beside that line — bold, italic, strikethrough, inline code, highlight and link — as upstream MarkText does. It is placed by laying out the line's prefix in the editor's own font, so it lands beside the selection whatever the text is, and it follows the text when the editor scrolls. Only for a selection within one line: a strip over a whole block would cover the text it is about
  • Move a block up or down with Alt+↑ / Alt+↓, trading places with the block before or after it — upstream MarkText reorders paragraphs by dragging one over another. Boundaries come from the parser, so a fenced code block moves whole rather than being split at the blank line inside it, and the blank line between two blocks stays between them. With a selection, the lines it touches move instead
  • Table editing: insert a row above or below, delete a row, insert a column left or right, delete a column, and set a column's alignment. Under Format ▸ Insert ▸ Edit Table, greyed out where a command does not apply — outside a table, on the header row for Delete Row, and on a single-column table for Delete Column. Any edit re-aligns the whole table, measuring CJK characters at the two columns they occupy

Fixed

  • An image written with a path relative to the document — ![](./img/x.png), which is how images are ordinarily written — now appears in the preview. The path went straight to File(), which resolves against the directory the application was started from, so the picture was never found. Exporting resolved these correctly all along, and so did following a relative link, which is why a document could export with its images and show none of them
  • Pressing up in the document's first block while editing in the preview no longer closes the editor. It committed before looking for somewhere to go, and there was nowhere