When a song is saved with a markdown-formatted description, we render it to HTML before saving into the DB.
This is good for performance given that writes are way less infrequent than reads. But it adds complexity. And also, unless the site gets so popular that performance becomes a problem, the speed impact of rendering markdown at display time is sufficiently small.
When a song is saved with a markdown-formatted description, we render it to HTML before saving into the DB.
This is good for performance given that writes are way less infrequent than reads. But it adds complexity. And also, unless the site gets so popular that performance becomes a problem, the speed impact of rendering markdown at display time is sufficiently small.
(ditto BBCode for comments)