Skip to content

Commit b5327e1

Browse files
committed
fix inline codeblock creating a new line
1 parent 7696ca7 commit b5327e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121
}
2222

2323
group = "dev.dediamondpro"
24-
version = "1.2.1"
24+
version = "1.2.1+localtest1"
2525

2626
repositories {
2727
mavenCentral()

src/main/java/dev/dediamondpro/minemark/elements/impl/CodeBlockElement.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public abstract class CodeBlockElement<S extends Style, R> extends ChildMovingEl
3636
public CodeBlockElement(@NotNull S style, @NotNull LayoutStyle layoutStyle, @Nullable Element<S, R> parent, @NotNull String qName, @Nullable Attributes attributes) {
3737
super(style, layoutStyle, parent, qName, attributes);
3838
this.codeBlockType = layoutStyle.isPreFormatted() ? CodeBlockType.BLOCK : CodeBlockType.INLINE;
39+
// Update inline variable
40+
this.isInline = isInline();
3941
this.layoutStyle = this.layoutStyle.clone();
4042
this.layoutStyle.setPartOfCodeBlock(true);
4143
}

0 commit comments

Comments
 (0)