assemble / grunt-assemble-anchors

Assemble plugin for creating anchor tags from generated html.

Home Page:http://assemble.github.io/grunt-assemble-anchors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

request: don't overwrite existing id's

jonschlinkert opened this issue · comments

Use existing id, and only add a new id when one doesn't exist.

Is it overwriting the id? It's supposed to be grabbing the existing id from the h tag and put them in the anchor. But I do see an issue... I think 'h1,h2,h3,h4[id]' should be 'h1[id],h2[id],h3[id],h4[id]'. Maybe that's causing this issue.

I think so.... but maybe I was overwriting them with code modifications I did locally?

I think 'h1,h2,h3,h4[id]' should be 'h1[id],h2[id],h3[id],h4[id]'

That was something I was wondering.. I thought maybe Cheerio had some conveniences I wasn't aware of