simonwillisonblog icon indicating copy to clipboard operation
simonwillisonblog copied to clipboard

Support markdown in blogmarks and entries

Open simonw opened this issue 6 years ago • 1 comments

https://simonwillison.net/2019/Nov/6/working-pdf/

Automate the Boring Stuff with Python: Working with PDF and Word Documents. I stumbled across this while trying to extract some data from a PDF file (the kind of file with actual text in it as opposed to dodgy scanned images) and it worked perfectly: PyPDF2.PdfFileReader(open(“file.pdf”, “rb”)).getPage(0).extractText()

Those curly quotes are bad news! This would be better:

Automate the Boring Stuff with Python: Working with PDF and Word Documents. I stumbled across this while trying to extract some data from a PDF file (the kind of file with actual text in it as opposed to dodgy scanned images) and it worked perfectly: PyPDF2.PdfFileReader(open(“file.pdf”, “rb”)).getPage(0).extractText()

simonw avatar Nov 06 '19 16:11 simonw

While I'm at it, may as well support all of markdown in these. That would finally allow me to embed additional links (and paragraph breaks) in the descriptions.

I write most of my blog entries in markdown these days and then save them in the database as HTML - could support markdown there too.

simonw avatar Nov 06 '19 16:11 simonw

Done:

  • #419
  • #451

simonw avatar Jun 24 '24 15:06 simonw

https://simonwillison.net/2019/Nov/6/working-pdf/ is fixed now.

simonw avatar Jun 24 '24 15:06 simonw