I am trying to convert markdown to html and then use impatient-mode to display it live on browser on the fly.
Impatient mode uses
after-change-hook to detect changes in html. I am using
after-change-hook to detect changes in markdown buffer.
Buffer changes made while executing the
after-change-functionsdon't call any before-change or after-change functions. That's because
inhibit-modification-hooksis temporarily set non-nil.
As documentation says it won't work.
I can use timer to update every second but I am looking for a better solution.