Closed seancrater closed 1 year ago
For my own purposes, I temporarily modified my local version of Inky to not modify the ID.
To get the ID to render in watch/build processes, I opened /lib/util/getAttrs.js and removed 'id' from ignoredAttributes. I'm sure there's a reason it's in there.
Why: Hubspot/Marketo use ID tags to differentiate sections and it doesn't make much sense to use Foundation for Emails/Inky if I'm going to need to inject a bunch of ID tags after running the build process sadly.
Expected Functionality: Thought my ID tags would be placed the same way classes are placed.
Actual Functionality: ID tags appear to just be dropped from HTML when Inky is rendered in both watch/build tasks.
Solution: My best guess based on what I saw in the code for Inky is that this could be added to componentFactory.js to handle it on container, row, columns and any other components.