Flask-PageDown icon indicating copy to clipboard operation
Flask-PageDown copied to clipboard

Removing options like adding images

Open malikpiara opened this issue 3 years ago • 1 comments

Hi! I'm trying to remove the user ability to add images but I feel stuck. What would be the best way to approach this challenge?

malikpiara avatar Jan 27 '22 03:01 malikpiara

If you want to prevent the user from entering images in real time, then you'll have to look into modifying the pagedown JavaScript library. This project doesn't have anything to do with the real time markdown rendering.

Another option would be to filter images in the server once the markdown is submitted. For this, you may be able to use a regular expression to find and replace all images in the markdown source.

miguelgrinberg avatar Jan 27 '22 08:01 miguelgrinberg