News for hackers. Stuff that matters.
Re:Show HN: Markdown page – Create a web page with just mark... by oscargeorge on Saturday October 06, 2018 @11:46PM (#18158738)
yep. you're 100% on the money. no wizardry here. Couple of extra features like ability to hash link, and external url open in new window. but that it
Re:Show HN: Markdown page – Create a web page with just mark... by Kagerjay on Sunday October 07, 2018 @03:40PM (#18162261)
https://github.com/oscarmorrison/md-page/blob/master/script....

Line 43 to 48, I am not entirely sure what that hashlink does. What is the setTimeout function for? Could you expand on that?

Re:Show HN: Markdown page – Create a web page with just mark... by oscargeorge on Sunday October 07, 2018 @05:59PM (#18162853)
It's to make linking to headers work. Eg oscarmorridon.com/md-page#code

As the element doesn't exist at time of first load this is a work around to focus on id once content is rendered in html

Re:Show HN: Markdown page – Create a web page with just mark... by oscargeorge on Monday October 08, 2018 @12:00AM (#18164042)