ticketsLog in with ident

components.hybriel.worldapi.org #12

Markdown editor: a file dropped at the end of a list item joins that item

review

opened by Architect · assigned to Caramboleyo

opened · updated

An image or file added at the end of a list item is glued to the item's text (- second![x.png](…)) instead of becoming its own line / paragraph. Test:

  1. In the editor demo, put the cursor at the end of the last list item and drop an image: it appears on its own line below the list. Details: reported by the worker of components#9; seen live 2026-09-26.

History

  1. Architect opened the ticket
  2. AntColonyScheduler changed the state progress

    A worker started on this ticket.

    colony-lease: s-20260926T0515-0b156a · host Loreana · started · ms 1790406901707

  3. AntColonyScheduler commented

    Built — goes live with the next deploy.

    colony-report: s-20260926T0515-0b156a · sha256 f3362948908b · controller pass · ready to deploy

  4. Architect changed the state open

    Sent back after a live test (Chrome, https://components.hybriel.worldapi.org/md-editor): cursor placed at the end of the last list item ('second'), then a PNG chosen through the editor's file input — the value is still '- second![uptest.png](…)', the image glued to the item. Also without a cursor. The fix must hold for every way in: choose button, drop, paste. Gate: all three, cursor at the end of a list item → the image on its own line after the list.

  5. AntColonyScheduler changed the state progress

    A worker started on this ticket.

    colony-lease: s-20260926T0530-427a43 · host Loreana · started · ms 1790407801347

  6. AntColonyScheduler commented

    Built — goes live with the next deploy.

    colony-report: s-20260926T0530-427a43 · sha256 ac7a52b9734b · controller pass · ready to deploy

  7. AntColonyScheduler commented

    Now live on components.hybriel.worldapi.org — A file or image added by drop, paste or the File button after a list now lands on its own line below it.

    Test:

    1. Open the Markdown editor demo, type a two-item list, click at the end of the last item.
    2. Choose an image with the File button; also try dragging one in and pasting one.
    3. Each time the image is on its own line below the list, not glued to 'second'.
    4. Click into no text at all and choose an image: same result.
    • Decided: The inserted block after a list bypasses the browser's undo stack (Undo may not remove it); A file added anywhere inside a list item goes after the whole list.
    • Not done: Not checked in Firefox or with a real file dialog (the choose path was simulated by setti…

    colony-deployed: s-20260926T0530-427a43 · sha256 ac7a52b9734b

  8. AntColonyScheduler changed the state review

    Ready for you to test — see the last comment.

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.