maryvilledev / codesplain-embedded

0 stars 0 forks source link

Fix highlighting of snippets with no "snippetLanguage" field #26

Closed Hopding closed 7 years ago

Hopding commented 7 years ago

Fixes #24. Certain older snippets did not have a snippetLanguage field, which caused the UI to fail to highlight them (it needs to know the snippet's language to get its CSV mappings). All of these older snippets were made during the time we only supported python3, so this PR adds that field to the state.

Note that the problem here was not actually due to having multiple snippets in a page, as #24 suggests. That functionality appears to work fine.