mirror of
https://github.com/casey/just.git
synced 2025-07-07 09:35:01 +00:00
Add back-to-the-top link to readme (#2707)
This commit is contained in:
parent
6ac3c703bb
commit
515e806b51
2 changed files with 5 additions and 1 deletions
|
@ -4582,3 +4582,5 @@ I hope you enjoy using `just` and find great success and satisfaction in all
|
|||
your computational endeavors!
|
||||
|
||||
😸
|
||||
|
||||
[🔼 Back to the top!](#just)
|
||||
|
|
|
@ -161,7 +161,9 @@ fn main() -> Result {
|
|||
for event in &mut chapter.events {
|
||||
if let Event::Start(Tag::Link(_, dest, _)) | Event::End(Tag::Link(_, dest, _)) = event {
|
||||
if let Some(anchor) = dest.clone().strip_prefix('#') {
|
||||
*dest = CowStr::Borrowed(&links[anchor]);
|
||||
if anchor != "just" {
|
||||
*dest = CowStr::Borrowed(&links[anchor]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue