[GH-ISSUE #932] How to disable breaking fenced code blocks? #557

Closed
opened 2026-03-03 01:28:00 +03:00 by kerem · 1 comment
Owner

Originally created by @jcubic on GitHub (Aug 17, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/932

I have code like this:


```typescript
export { default } from './Modal';
```

Mardown lint format this as:


```typescript export { default } from './Modal'; ```

Is there a way to disable this behavior? this breaks code blocks.

I don't want any modification to code blocks, I don't want newline remove and added space before closing ```. Ideally when code blocks are ignored, if linter can't figure out how to properly format it.

Originally created by @jcubic on GitHub (Aug 17, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/932 I have code like this: ```` ```typescript export { default } from './Modal'; ``` ```` Mardown lint format this as: ```` ```typescript export { default } from './Modal'; ``` ```` Is there a way to disable this behavior? this breaks code blocks. I don't want any modification to code blocks, I don't want newline remove and added space before closing ```` ``` ````. Ideally when code blocks are ignored, if linter can't figure out how to properly format it.
kerem closed this issue 2026-03-03 01:28:00 +03:00
Author
Owner

@jcubic commented on GitHub (Aug 17, 2023):

Can you delete this issue? I think this is the output of Emacs formatting with fill-paragraph function to wrap lines into given length.

<!-- gh-comment-id:1681898343 --> @jcubic commented on GitHub (Aug 17, 2023): Can you delete this issue? I think this is the output of Emacs formatting with `fill-paragraph` function to wrap lines into given length.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#557
No description provided.