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

Multiline not compatible with format table #1

Closed
fluffyironboots opened this issue Mar 16, 2023 · 2 comments
Closed

Multiline not compatible with format table #1

fluffyironboots opened this issue Mar 16, 2023 · 2 comments

Comments

@fluffyironboots
Copy link

Hi,

this is a really nice plugin, thanks for creating it.
But i have a small issue.
When using the multiline feature of markdown-it-multimd-table like the example below, i cannot use the format on tab feature because the formatter removes the backslash at the end of the line.
Is there any workaround or did i just overlook some setting?

|   Markdown   | Rendered HTML |
|--------------|---------------|
|    *Italic*  | *Italic*      | \
|              |               |
|    - Item 1  | - Item 1      | \
|    - Item 2  | - Item 2      |
|    ```python | ```python       \
|    .1 + .2   | .1 + .2         \
|    ```       | ```           |

This is parsed below when the option enabled:

Markdown Rendered HTML
*Italic*

Italic

- Item 1
- Item 2
  • Item 1
  • Item 2
```python
.1 + .2
```
.1 + .2
@FelisDiligens
Copy link
Owner

Hi, thanks for reporting!
The multiline feature isn't part of the MultiMarkdown spec, so I wasn't aware of it's existence.
I'll add it soon.

@FelisDiligens
Copy link
Owner

Latest version (1.0.1) should retain the \ at the end of a row after formatting now.

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

No branches or pull requests

2 participants