News for hackers. Stuff that matters.
Re:Show HN: 1Post – HN-like site with markdown and syntax hi... by hayksaakian on Friday November 20, 2015 @01:48PM (#10603014)
Since its markdown, couldn't you read the raw comments from the API and run them through a markdown interpreter?
Re:Show HN: 1Post – HN-like site with markdown and syntax hi... by danneu on Friday November 20, 2015 @05:21PM (#10604264)
One benefit of saving the rendered html along with markup in the database is that you can make breaking changes to the parser (like swap it out entirely) without worrying about old posts.
Re:Show HN: 1Post – HN-like site with markdown and syntax hi... by kulakowka on Friday November 20, 2015 @05:49PM (#10604399)
I specifically made keeping the original markdown text. The parser will improve. For instance, I plan to make a @mention and #hashtags. Like a twitter. With email notification when you mentioned.
Re:Show HN: 1Post – HN-like site with markdown and syntax hi... by kulakowka on Friday November 20, 2015 @05:50PM (#10604407)
A ready HTML stored in a database, to avoid wasting CPU time for parsing each time the page is viewed.