Ability to add the id attribute to the paragraph inside the structured text field?

I would like to have the ability to ​add the HTML id attribute to the paragraph inside the structured text field.

We want to assign different id for different sections so that we can create a table of contents block.