-
Notifications
You must be signed in to change notification settings - Fork 529
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
rel attribute #388
Comments
You can use quotes:
|
Not work
with quotes this result
|
I was confused. You're right: there's no way at the moment to have a space in a custom attribute. You can write the link in HTML form though (if the context allows HTML). (Some work would need to be done in |
For the css attribute the following works result but not work with rel Could you do it like with the css attribute? |
My solution php-markdown/Michelf/MarkdownExtra.php Lines 244 to 245 in eb176f1
change
to
replace the space with underscore
result |
Won't work, given the example In theory, potentially a better solution would be to support This would require more than just a 1-line change though. I've done something very similiar with another project and if Michelf is interested I could probably whip up something to accommodate this. |
It works. Also with the img tag. With the tag title there are now also no more problems with the spaces.
result |
It works using
Adding support for quotes would be the best solution. |
How to enter multiple attributes for rel?
php-markdown 2.0.0
This results
<a href="url" class="link" target="_blank" rel="noreferrer">Link</a>
noopener missing.
The text was updated successfully, but these errors were encountered: