Skip to content

Conversation

@ginkouno
Copy link
Contributor

@ginkouno ginkouno commented Oct 5, 2017

Description

TOC link is very usefull, but link with {hoge} parameter is not valid.
So I changed link target from link url to title of api description part.

Sample

please click each toc link on these .md files.

before
https://github.com/ginkouno/md_link_sample/blob/master/schema_toc_link_before.md

after
https://github.com/ginkouno/md_link_sample/blob/master/schema_toc_link_after.md

TODO

  • Fix test

@ginkouno ginkouno changed the title Link to api title from toc [wip]Link to api title from toc Oct 5, 2017
@ginkouno ginkouno changed the title [wip]Link to api title from toc Link to api title from toc Oct 5, 2017
assert_match '<a href="#resource-app"', markdown
assert_match '- <a href="#link-POST-app-/apps">POST /apps', markdown
assert_match '- <a href="#app-create-app">POST /apps', markdown
assert_match '<a name="link-POST-app-/apps"', markdown
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this a name need to change to match the other name for the anchors to function?

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