MD-Editor CHANGELOG
================================================================
2026_0702
Refines various parts of the tool and its code
2026_0701
Describes actions in the context menu dynamically:
With N sections selected, some actions only apply to a subset
The tool notes the number of sections an action would apply to
Adds a 'neighbour' action which makes selected sections adjacent
by moving selected sections towards the right-clicked section:
sections=1,2,3,4,5; selected=1,3,5; neighbour to 3=2,1,3,5,4
Adds a 'group' action to put selected sections in a new section
2026_0625
Puts all documents sections in one column in a sidebar
(vs 3 columns behaving like a tree for h1, h2 and h3 sections)
Rewrites most behaviour to suit the revised approach and layout
Swaps many UI buttons for a context menu with dynamic options
Shows a context menu when
user right clicks any section
user left click an active section
Adds checkboxes to section rows to show / change selection state
Adds `cmd+click` to toggle a section's selected state
Adds `shift+click` to select a range of sections
------------------
Alternate version of tool above
Original version of tool below
------------------
2025_1002
Adds undo redo button for main section area for touch devices
Disables undo and redo buttons when at either end of history
2025_0830
Adds (and fixes) touch support for section drag, drop, click
Makes all sections share the same textarea and input for editing
Switches undo redo stack on section load
Confirms user wants to edit in source mode before allowing
Applies source mode edits if trimmed before and after differ
Stamps demo document meta with current date time
Fixes how tool checks for changes made in source mode
2025_0725
Adds undo-redo-stack for each section title and text field
persists between swapping sections and active fields
(Hides and shows fieldsets instead of changing content)
Styles selected section and its parent sections differently
2025_0712
Adds 'move left' button to move a section to its parent's level
Activates the first section in a document on load
Unifies styling of elements
Unifies structure of dialog sheet modes (Meta + Raw)
Tweaks demo text
Adds tooltip titles attributes to buttons
Adds initial log (and links to and from it)
2025_0711 (V1)
Adds MD file reader
Add MD to DB converter (a basic JS structure to represent doc)
Adds basic frontend (Toolbar > document nav > section editor)
Shows document structure, outline and sections in navigator
Activates section clicked in nav and loads its text to editor
Stores changes made in editor to DB
Adds DB to MD converter
Adds MD file saver
Adds actions 'add section above' and 'add section below'
Adds 'move section up' and 'move section down'
Adds 'delete selected section'
Adds 'rename section'
Adds drag-drop to section nav for structuring a document
Adds 'drag above' and 'drag below' to change order of siblings
Adds 'drop onto' to make one section the child of another
Allows drag to parent column to make a h3 a h2 and a h2 a h1
Limits document levels to H1, H2 and H3
Highlights the active section in document outline / navigator
Names new sections
Focuses the section name field of a newly made section
Focuses content editor when activating an existing section
Changes DB from nested structure to a flat array of objects
Counts children per section and displays the number in navigator
Styles tool plainly (BW monospace with dark and light modes)
Writes demo markdown file that introduces the tool
Loads demo text when the tool loads
Adds button to reload the demo
Turns the free space in navigator columns into drop zones
Adds page footer, links, and license popover
Adds Raw Mode to view the whole file in one text area
Allows editing the document in raw mode
Adds File frontmatter parser
Adds Meta mode to view and edit document frontmatter
Timestamps saved files
Re-selects a section after moving it
Handles markdown which has text before any first header
Handles incorrect section level sequences (e.g. an h3 in an h1)