Skip to content

Do not add a blank line at the end of code blocks #737

@exKAZUu

Description

@exKAZUu

prettier-plugin-java: 2.6.8

prettier Test.md

Input:

# Java

```java
public class Test {

  public static void main(String[] args) {
    System.out.println("Hello, World!");
  }
}
```

# JavaScript

```javascript
function main() {
  console.log("Hello, World!");
}
```

Output:

# Java

```java
public class Test {

  public static void main(String[] args) {
    System.out.println("Hello, World!");
  }
}

```

# JavaScript

```javascript
function main() {
  console.log("Hello, World!");
}
```

Expected behavior:

# Java

```java
public class Test {

  public static void main(String[] args) {
    System.out.println("Hello, World!");
  }
}
```

# JavaScript

```javascript
function main() {
  console.log("Hello, World!");
}
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions