Repository navigation
Releases
Releases · haas-software/markdown
v1.8.0
- Fenced code blocks: a
line opens a fence, the next one closes it, everything in between is code: no prefix detection, Enter is a plain new line, Tab inserts two spaces. The toolbar's code button wraps the current line in fences, or unwraps the fence you are in. (Before, the button putin front of the text on the same line, which markdown reads as a fence opener.) - Cmd/Ctrl+A also works in table cells: first press selects the cell's text, second press selects all blocks.
v1.7.0
- Fix: the heading / list / quote / code / paragraph toolbar buttons did nothing since 1.3.0 (
setPrefixwas accidentally removed in the table rewrite). - Enter model: Enter = new line. Lists and quotes carry their marker to the next line; Enter on an empty item ends them. Shift+Enter is a line break inside a list item (stored as an indented continuation line,
- a\n b, and merged back into one block on load) or inside a table cell. Everywhere else it would give the same markdown as Enter, so it is Enter. - Copy/paste of block selections uses the same serialization, so multi-line list items round-trip.
- Deleting or replacing a block selection that cuts into a table repairs the table: leading separator dropped, missing separator inserted, missing data row added.
v1.6.1
- Fix: the image under an image block was stretched to the full editor width (a 1×1 image became hundreds of pixels tall). It now keeps its natural size, capped at
max-width: 100%. - Fix: dropped
loading="lazy"on the (initially hidden) image; a hidden lazy image may never load, which kept it hidden forever.
v1.6.0
- A line that is exactly
(optionally with a title) is an image block: the raw line stays an editable textarea and the real image is shown underneath atmax-width: 100%. Editing the line updates the image in place; while it does not load it stays hidden. - Image sources can be translated:
images: { id: url }map orimageUrl(src)function option;refreshImages()re-resolves after the map changes.
v1.5.2
- A table always keeps its header and one data row: Backspace and Enter-on-empty-row can no longer remove the last data row. To remove a table, select its rows and press Backspace.
- Enter on the header row inserts the new row after the
---separator (it used to land in between). - Tab from the very last cell with nothing below the table creates an empty line under it, so you can always keep typing.
v1.5.1
v1.5.0
- Table cells are now textareas, so they behave like every other block: Shift+Enter for a line break inside a cell (stored as
<br>in the raw markdown), auto-growing height, arrows leave the cell only on its first/last line. - Tables no longer scroll horizontally: columns take their natural width, long text wraps and grows. No scrollbars.
v1.4.0
- Type
|in a cell to add a column right after it (the cell is split at the caret, every row gets the new column, the separator too). - Backspace at the start of an empty cell: removes the column when it is empty in every row, otherwise moves to the previous cell.
v1.3.1
v1.3.0
- Tables are a grid now: every cell is its own
<input>, rows line up via CSS subgrid and consecutive rows share one horizontally scrolling group. Tab moves to the next cell natively, arrows move between cells and rows (skipping the separator line), Enter adds a row, Backspace on an empty row removes it, Enter on an empty last row ends the table. Pipes typed inside a cell are escaped as\|. The raw markdown is kept aligned and rectangular automatically. >without a trailing space already starts a quote; quotes have a comment-style callout look (tinted background, accent bar).- Focused inputs are never rewritten while typing.