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

mmdCSSclass blows up on valid, relative urls #29

Open
davidearl opened this issue Jun 28, 2016 · 1 comment
Open

mmdCSSclass blows up on valid, relative urls #29

davidearl opened this issue Jun 28, 2016 · 1 comment

Comments

@davidearl
Copy link

Partial URLs containing only one slash and no periods cause the Javascript to blow up. E.g.
[example](/example)
produces a Javascript error in mmdCSSclass because urlTmp only has one element, so you try to access urlTemp[-1]

Actually
[example](example)
is perfectly valid too, and would blow up earlier because urlTemp[1] does not exist

It looks like this is only trying to set a class on links, so I can probably work round this with strict=true, but that's not in your documentation.

@kellerza
Copy link

Also experiencing this issue while trying to use it in Home Assistant home-assistant/core#3919. Will try it with strict=True

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