Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Add code" button and markdown backticks seem to be interfering #386

Open
sidemt opened this issue Dec 14, 2023 · 2 comments
Open

"Add code" button and markdown backticks seem to be interfering #386

sidemt opened this issue Dec 14, 2023 · 2 comments

Comments

@sidemt
Copy link
Member

sidemt commented Dec 14, 2023

This is based on feedback from Abbey. There seems to be something is not quite right when adding/editing the code block.

To create a code block, it looks like you can type three backticks and the programming language and then type your code - but when I type three backticks to end the code block, it doesn't end it - it keeps formatting it like code

pressing the </> button stopped that formatting - but I think we need to enable markdown syntax where a code block can be "finished" by just typing the three backticks. Many of our authors use markdown to write their articles.

@Sembauke
Copy link
Member

Sembauke commented Feb 9, 2024

To create a code block, it looks like you can type three backticks and the programming language and then type your code - but when I type three backticks to end the code block, it doesn't end it - it keeps formatting it like code

This is because the content is automatically ended with three backticks, meaning you are in the middle of the surrounding backticks.

pressing the </> button stopped that formatting - but I think we need to enable markdown syntax where a code block can be "finished" by just typing the three backticks. Many of our authors use markdown to write their articles.

To exit the code formatting you need to press Command + Enter.

@Nirajn2311
Copy link
Member

I believe this behaviour is same as the one in Ghost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants