Skip to content

Commit c5ff11b

Browse files
committed
fix bugs
1 parent 42fbd1d commit c5ff11b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

html2md/src/main/java/com/dawn/html2md/csdn2md/CSDN2mdService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ private static void buildHexo(BlogModel bm, String filePath) throws IOException
197197
sb.append(HTML2Md.convertHtml4csdn(bm.getContent(), "UTF-8"));
198198

199199
String fileName = bm.getTitle().replaceAll("\\.", "").replaceAll("/", "");
200+
filePath = filePath.replaceAll("\\.", "").replaceAll("/", "");
200201
IOUtils.write(sb.toString(),
201202
Files.newOutputStream(new File(filePath + File.separator + fileName + ".md").toPath()),
202203
Charset.defaultCharset());

0 commit comments

Comments
 (0)