mockup icon indicating copy to clipboard operation
mockup copied to clipboard

Autotoc removes markup in tabs

Open jensens opened this issue 10 years ago • 2 comments

I tried to include markup in the tabs, such as an thumb of an image. But at https://github.com/plone/mockup/blob/master/mockup/patterns/autotoc/pattern.js#L128 only the contained text is copied over.

I agree that this is in some situations a feature, in others not.

I propose to add an option rich or markup and set its by default to false, so current behavior is kept, but can be overridden in cases this is needed.

jensens avatar Mar 14 '16 18:03 jensens

Sounds fine to me.

vangheem avatar Mar 16 '16 17:03 vangheem

IMO, if it does not break anything we could leave the "rich" option out and just insert markup in the tab headers per default.

thet avatar Mar 17 '16 09:03 thet