Skip to content

Commit

Permalink
修改 lineNumber 类型
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhihang committed Oct 24, 2022
1 parent d492e94 commit 0997866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/run/halo/prismjs/PrismJSHeadProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Mono<Void> process(ITemplateContext context, IModel model, IElementModelS
}).orElse(Mono.empty()).then();
}

private String highlightJsScript(String css, String customCss, String lineNumber) {
private String highlightJsScript(String css, String customCss, Boolean lineNumber) {
return """
<!-- PluginPrismJS start -->
<link rel="stylesheet" href="/plugins/PluginPrismJS/assets/static/themes/%s"/>
Expand Down Expand Up @@ -103,7 +103,7 @@ function loadCss(url) {

@Data
public static class BasicConfig {
String lineNumber;
Boolean lineNumber;
String customCss;
String css;
}
Expand Down

0 comments on commit 0997866

Please sign in to comment.