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

line breaks not respected #257

Open
hamad12a opened this issue May 18, 2024 · 4 comments
Open

line breaks not respected #257

hamad12a opened this issue May 18, 2024 · 4 comments

Comments

@hamad12a
Copy link

supported line breaks from Katex \newline and \\ ignored by the preview extension

@mjbvz
Copy link
Owner

mjbvz commented May 20, 2024

Please share a complete example

@hamad12a
Copy link
Author

hamad12a commented May 21, 2024

Let's assume a short markdown file written and outputted as shown below without any line breaks:

image)

Now, using line breaks \n:

image

Or using \\ instead:

image

@mjbvz
Copy link
Owner

mjbvz commented May 21, 2024

Please share it as text so I can easily test it

@hamad12a
Copy link
Author

hamad12a commented May 21, 2024

```mermaid
%%{ init: { 'flowchart': { 'curve': '' } } }%%
flowchart TD
    A("break the equation from the text: $$\\ a+b=c$$")
    B("break the equation from the text: $$a+b=c$$")
    
    style space1 fill:#0,stroke:#333,stroke-width:4px

    subgraph space1["`**Title:**`"]
    A --> B
    end
```

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

2 participants