mdgriffith / elm-markup

Elm-friendly markup

Home Page:https://package.elm-lang.org/packages/mdgriffith/elm-markup/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Same Mark.Id for blocks after text blocks

b0oh opened this issue · comments

commented

When using Mark.withId I found that it gives same id's for blocks that coming after text blocks.
Example is here: https://ellie-app.com/6DnZGxT3Rvda1

elm=0.19
elm-markup=3.0.1

commented

In example we can see that two blocks have id=7, and the next two have id=9.

commented

Actually, in example, even if you replace text blocks with

|> Paragraph
    Lorem ipsum dolor

and add such a block, it still will produce same result with repeating id's.