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

Show how to create an anchor link #1833

Merged
merged 3 commits into from
Oct 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Guide/recipes.markdown
  • Loading branch information
amitaibu authored Oct 1, 2023
commit ec409f355805c8f266b93f4c8553c5f39dc89f97
2 changes: 1 addition & 1 deletion Guide/recipes.markdown
Original file line number Diff line number Diff line change
@@ -430,7 +430,7 @@ case post of

## Highlight the targeted element

Let's say you have a page with comments, and you link to them with `<a href="#comment-<comment ID>">`, that you've built like that (assuming you have a `comment.id`)
Let's say you have a page with comments, and you link to them with `<a href="#comment-<comment ID>">`. You can build it like this (assuming you have a `comment.id`):

```haskell
[hsx|