Skip to content

Conversation

@22a
Copy link
Contributor

@22a 22a commented Sep 10, 2018

This PR tweaks the title() method of the HBSRenderer in lib/utils/compile-markdown.js to only add a title attribute to the html snippet when the passed title argument is truthy.

This prevents adding null (and perhaps also undefined, but I haven't encountered that yet) title attributes to a tags, such as this (visible here):

image of the string 'null' title attribute visible when hovering over a link


This PR also bumps the marked dependency from ^0.3.12 to ^0.5.0 for no particular reason other than to keep it up to date - I don't feel strongly about this and I'm happy to remove this change from the PR if you'd prefer.

@22a
Copy link
Contributor Author

22a commented Sep 13, 2018

cc @samselikoff @dfreeman

@samselikoff samselikoff merged commit eea81ea into ember-learn:master Sep 13, 2018
@samselikoff
Copy link
Contributor

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants