Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin conflicts with inline SVG <text> tags. #4

Closed
sachasayan opened this issue Aug 16, 2013 · 1 comment
Closed

Plugin conflicts with inline SVG <text> tags. #4

sachasayan opened this issue Aug 16, 2013 · 1 comment

Comments

@sachasayan
Copy link

Text is a valid tag in SVG, and the plugin absolutely mangles them:

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text

The issue is replicable by having inline SVG in any file that will be parsed by docpad while this plugin is enabled. Text will disappear in the SVG.

@balupton
Copy link
Member

Released text plugin v2.3.0. Set the plugin's configuration option matchElementRegexString to t and that way it will only use and look for the <t> element instead of the <text> element as well. Documentation for this is now included in the readme too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants