sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

Disable preview rendering in writing mode #844

Closed Ivan-Kurochenko closed 7 months ago

Ivan-Kurochenko commented 7 months ago

When I am typing text like that and applying bold font, I don't wanna the style applied in writing mode.

How can I disable it?

image

I have code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="./style.css">

</head>
<body>
<textarea id="editorjs" class="text-input"></textarea>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
<script>
    new SimpleMDE({
        element: document.getElementById("editorjs"),
        placeholder: "Please describe what kind of assistance is required",
        toolbar: ["bold", "italic", "heading", "code", "quote", "unordered-list", "ordered-list", "link", "image", "table", "horizontal-rule", "preview", "side-by-side", "fullscreen"],
    });
</script>
</body>
</html>

When I am choosing any style, for example, bold font, it momently applies the style, but I don't want to. I wanna just add **text** without making the text bold. How can I disable this?

Ivan-Kurochenko commented 7 months ago

@nofxx @brondsem @adam187 @LulzAugusto

Ivan-Kurochenko commented 7 months ago

@WesCossick @cbadke @nofxx @FabianKoestring