able-bio / suggestion-box

A place to submit issues for bugs, feature requests and other ideas related to Able.
https://able.bio
4 stars 0 forks source link

Import fails if file contains code block in a language not recognized by the highlighter #46

Closed clartaq closed 4 years ago

clartaq commented 4 years ago

Describe the bug If you attempt to drag a Markdown file that contains a fenced code block written in a language not recognized by the highlighter, the import fails.

To Reproduce Steps to reproduce the behavior:

  1. Drag a Markdown containing a block of code written in Clojure/ClojureScript/EDN to the editor demo page.'
  2. The import will fail.

Expected behavior I expected the import to succeed. If the language is not recognized, it should at least succeed and highlight the code block as "plain".

Desktop (please complete the following information):

Additional context The fallback for the highlighter should be "plain", but it would be nice if you expanded the "known" languages. In my case, Clojure, ClojureScript, EDN, Lisp, Scheme, Racket would be nice.

RhettTrickett commented 4 years ago

Thanks for reporting @clartaq - we are aware of this. @drenther is working on a fix.

RhettTrickett commented 4 years ago

Hi @clartaq - this has now been fixed.