-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
autolinks should have a class when converted to html #1501
Comments
I agree that this would be helpful. But with the current Pandoc AST, it isn't always obvious when you have an autolink -- autolinks are represented the same way as ordinary links. You'd have to compare an |
For now you can probably write a tiny bit of javascript to look for links whose contents match their href attributes and add a class. |
Sorry, but I wonder whether the approach to fix #1270 would make sense here. |
Hm, maybe it's that simple.
I'll have to check the markdown reader to make sure that's reliable. |
@jgm, could the new code (once tested) be included in next release? |
I think we can squeeze it in.
|
Many thanks for the fix. |
Autolinks should add a class (such as
class="autolink"
) when converted to html, so it would be possible to format them in a different way than links in standard text.Here you have a minimal sample (and its output):
So it would to be possible to format them in CSS with:
If the class isn’t added for autolinks, standard text would be formated to monospace when containing links.
Many thanks for your excellent work.
The text was updated successfully, but these errors were encountered: