mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#864
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/718
Author: @guneskaan
Created: 12/13/2020
Status: ✅ Merged
Merged: 12/14/2020
Merged by: @Rokt33r
Base:
master← Head:blank-code-block-unknown-languages📝 Commits (2)
519b802Preview Plain Text for Unrecognized Languages511c30fRe-sructure If Block📊 Changes
1 file changed (+19 additions, -15 deletions)
View changed files
📝
src/components/atoms/MarkdownPreviewer.tsx(+19 -15)📄 Description
Fixed #698.
Currently, we display invisible text when the language specified for the code block is not recognized.
This is because in
MarkdownPreviewer.tsx: rehypeCodeMirrorAttacher(), there is an edge case where if language is not null but there is no mime found for this language that can be found inCodeMirror.findModeByName, we setnode.childrento[].Fix this case by returning early before the
node.children = cmResultassignment.Tested with following languages after applying the change above:
java -> rendered with java highlighting
123f (made up language) -> rendered as plain text
(empty) -> rendered as plain text
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.