Repository navigation
Releases: BobTheShoplifter/slidev-addon-studio
Releases · BobTheShoplifter/slidev-addon-studio
Release list
0.3.1
Full Changelog: v0.3.0...v0.3.1
0.3.0
Editing now works the way a slide editor should: on a text box rather than on one Markdown block at a time. Three of these fixes were losing content.
Fixed, and each was losing work
- Paste discarded the edit. A browser pastes the markup it was given, none of which is Markdown, so the block was refused and the pasted words vanished with nothing said. Paste now arrives as text.
- Reordering and duplicating broke lists. Moving an item down looked for the next block, which from inside a list is the paragraph after the whole list, so the item jumped over its siblings and landed under a different parent. Duplicating it stripped the indentation and left a blank line, which ends a list, so one list became two. Both are written against the list now, and an item carries anything nested under it.
- Free positioning an item destroyed its list. Wrapping one line of a list in
<v-drag>splices an HTML block into the middle of it. It is refused, with a reason, instead.
Editing
- A run of blocks is handed to the browser as one text box. Enter starts a paragraph, a second Enter on an empty bullet leaves the list, and a selection can cross two paragraphs, because the browser already does all of that.
- Nested lists read and write properly, indentation and all, and a sub-list keeps the kind it is.
- Bold, italic, underline, strike and code are a real toggle. They previously only worked once, because
execCommandasked the browser whether the selection was already bold and got the wrong answer. - Underline is new, written as the inline HTML it renders as.
- Text a layout takes from frontmatter, a title or an eyebrow, is editable where it sits once a theme marks it with
data-studio-prop.
Fixed
- Studio no longer appears in a deck that has been built, and no longer writes
data-studio-srcline references into published HTML. - Undo and redo answer to Cmd as well as Ctrl. Bound only to Ctrl, undo did nothing at all on a Mac.
- A frontmatter key holding a list is edited as rows instead of showing
[object Object]. - A block inside a layout that positions its own panes lands where it is dropped, in both the preview and the file.
0.2.0
First published release with the full addon: the palette, the element inspector, arrange, assets and the slide panel.
Installable from npm as slidev-addon-studio@0.2.0.