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

Add snippet anchor #76

Merged
merged 6 commits into from
Aug 11, 2019
Merged

Add snippet anchor #76

merged 6 commits into from
Aug 11, 2019

Conversation

SimonCropp
Copy link
Owner

@SimonCropp SimonCropp commented Aug 11, 2019

New snippet rendering will be

<!-- snippet: MySnippetName -->
Some blurb about the below snippet
<a id='snippet-MySnippetName'/></a>
```
My Snippet Code
```
<sup>[snippet source](/relativeUrlToFile#L1-L11) / [anchor](#snippet-MySnippetName)</sup>
<!-- endsnippet -->

Note the anchor link that points back to the top of the snippet.

This enable people to deep link into specific snippets

@SimonCropp SimonCropp added this to the 16.2.0 milestone Aug 11, 2019
@SimonCropp SimonCropp merged commit 2836081 into master Aug 11, 2019
@delete-merged-branch delete-merged-branch bot deleted the snippetAnchor branch August 11, 2019 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant