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

Style hexo-renderer-markdown-it's automatic headline ID's #588

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

Vinnl
Copy link
Contributor

@Vinnl Vinnl commented Jan 8, 2016

See https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki/Advanced-Configuration#automatic-headline-ids

hexo-renderer-markdown can add permalinks to headings. However, they are
prepended to the heading and styled like a regular link, which doesn't look
that good. This pull request moves it to the right, hides it when not hovering the
heading, and tones it down until the actual anchor is hovered.

You can preview what it looks like now over here: http://vincenttunru.com/Error-Error-while-waiting-for-Protractor-to-sync-with-the-page/#how-to-solve-it (hover over the heading)

See https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki/Advanced-Configuration#automatic-headline-ids

hexo-renderer-markdown can add permalinks to headings. However, they are
prepended to the heading and styled like a regular link, which doesn't look
that good. This commit moves it to the right, hides it when not hovering the
heading, and tones it down until the actual anchor is hovered.
iissnan added a commit that referenced this pull request Jan 12, 2016
Style hexo-renderer-markdown-it's automatic headline ID's
@iissnan iissnan merged commit 4cc1425 into iissnan:master Jan 12, 2016
@iissnan
Copy link
Owner

iissnan commented Jan 12, 2016

Cool. 👍

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