Skip to content

Conversation

@yujinakayama
Copy link
Contributor

Previously we've generated heading anchors in custom post-process with HTML::Pipeline. However fragment IDs of the anchor may be inconsistent when we use ::Greenmat::Render::HTML_TOC renderer directly.

This change fixes the inconsistent fragment IDs by generating the IDs in renderers rather than post-process, and also doing so improve the overall rendering performance.

This is a preparation for sharing the anchor generation logic with ToC
renderer and also for performance improvement.
... with the anchors generated by Greenmat::HTMLRenderer.
@yujinakayama yujinakayama changed the title Fix inconsistent heading fragment IDs generated by renderers Fix inconsistent heading fragment IDs Apr 20, 2015
@r7kamura
Copy link
Contributor

spec/qiita/markdown/processor_spec.rb が成功していれば良いと思います

@yujinakayama
Copy link
Contributor Author

Thanks!

yujinakayama added a commit that referenced this pull request Apr 20, 2015
Fix inconsistent heading fragment IDs
@yujinakayama yujinakayama merged commit e7d500c into master Apr 20, 2015
@yujinakayama yujinakayama deleted the fix-toc-anchor branch April 20, 2015 03:43
yujinakayama added a commit that referenced this pull request Jun 16, 2017
... so that Greenmat filter won't generate FontAwesome classes and we
can say that they're inputted by user if they exist.

This partially reverts #12.
yujinakayama added a commit that referenced this pull request Jun 16, 2017
... so that Greenmat filter won't generate FontAwesome classes and we
can say that they're inputted by user if they exist.

This partially reverts #12.
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.

3 participants