News for hackers. Stuff that matters.
Re:Show HN: Improved Markdown Links by chalst on Tuesday July 17, 2018 @02:34AM (#17547765)
If you rewrite a paragraph so that the order that links appear is broken, then you need to figure out how to do that reordering on the links. I don't find this more maintainable.
Re:Show HN: Improved Markdown Links by jgalvez on Tuesday July 17, 2018 @03:00AM (#17547854)
Good point. For me that's an edge case, though. Cutting and pasting to reorder seems easier than editing refs too.
Re:Show HN: Improved Markdown Links by hmmm5 on Tuesday July 17, 2018 @01:25PM (#17551392)
> For me that's an edge case, though

You rarely edit a paragraph with links?

I think a better way is to specify the number a link refers to but reorder it if it's out of order. So maybe you have 1,2,3 then after an edit it's 1,2,5,4,3 then after publishing it becomes 1,2,3,4,5 while still prserving the order of links (so only changing numbers)