Skip to content

Markdown: indentation in code within blockquote is moved outside blockquote #3379

@suchipi

Description

@suchipi

Prettier 1.8.2
Playground link

--parser markdown

Input:
Raw:

> NOTE: To use `unobtrusive`, `unobtrusive/import`, `unobtrusive/react`, and `unobtrusive/flowtype` together, your eslint config would look like this:
>```json
>{
>  "extends": [
>    "unobtrusive",
>    "unobtrusive/import",
>    "unobtrusive/react",
>    "unobtrusive/flowtype"
>  ],
>  "env": {
>    "browser": true
>  }
>}
>```

Rendered:


NOTE: To use unobtrusive, unobtrusive/import, unobtrusive/react, and unobtrusive/flowtype together, your eslint config would look like this:

{
 "extends": [
   "unobtrusive",
   "unobtrusive/import",
   "unobtrusive/react",
   "unobtrusive/flowtype"
 ],
 "env": {
   "browser": true
 }
}

Output:
Raw:

> NOTE: To use `unobtrusive`, `unobtrusive/import`, `unobtrusive/react`, and
> `unobtrusive/flowtype` together, your eslint config would look like this:
>
> ```json
> {
  > "extends": [
    > "unobtrusive",
    > "unobtrusive/import",
    > "unobtrusive/react",
    > "unobtrusive/flowtype"
  > ],
  > "env": {
    > "browser": true
  > }
> }
> ```

Rendered:


NOTE: To use unobtrusive, unobtrusive/import, unobtrusive/react, and
unobtrusive/flowtype together, your eslint config would look like this:

{
"extends": [
> "unobtrusive",
> "unobtrusive/import",
> "unobtrusive/react",
> "unobtrusive/flowtype"

],
"env": {
> "browser": true
}
}


Expected behavior:
Raw:

> NOTE: To use `unobtrusive`, `unobtrusive/import`, `unobtrusive/react`, and
> `unobtrusive/flowtype` together, your eslint config would look like this:
>
> ```json
> {
>   "extends": [
>     "unobtrusive",
>     "unobtrusive/import",
>     "unobtrusive/react",
>     "unobtrusive/flowtype"
>   ],
>   "env": {
>     "browser": true
>   }
> }
> ```

Rendered:


NOTE: To use unobtrusive, unobtrusive/import, unobtrusive/react, and
unobtrusive/flowtype together, your eslint config would look like this:

{
  "extends": [
    "unobtrusive",
    "unobtrusive/import",
    "unobtrusive/react",
    "unobtrusive/flowtype"
  ],
  "env": {
    "browser": true
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions