diff --git a/README.md b/README.md index 099073f..8181769 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,8 @@ After you **PUBLISH** the web site by using the **!publish!** *trick* in the com [^1]: **Header** is called [Front Matter](https://gohugo.io/content-management/front-matter/) in HUGO's documentation. [^2]: The phrase *commiting the changes* comes from the Git vocabulary and if this is the first time you hear about it, probably the closest well known equivalent would be to say *saving the file after it has been changed*. In our case here the file being *saved* to the Git repository will add its latest changes to the history log of all of the previous versions of that file, it will add the name of the account which made those changes together with the date when all of this happened. By doing all of this any file in the Git repository is easily reverted to any of the versions from the past, the history of who did what is kept and the whole repository is ready to be distributed, shared, and synced with any of its "clones" on other different computers. -### Library bookmarklet quickly get the Markdown link for the book reference (simple version): +### Library bookmarklet quickly get the Markdown link for the book reference: ```javascript -javascript:(function(){let r = new RegExp(".*book/");alert(`![](bib:${location.href.replace(r,"")})`);})() +javascript:(()=>{alert(`![](bib:${location.href.replace(RegExp(".*book/"),"")})`);})() ``` \ No newline at end of file