Skip to content

Commit

Permalink
fix: Remove dummy html line breaks cleanup
Browse files Browse the repository at this point in the history
Fixes #641
  • Loading branch information
3y3 committed Jan 23, 2024
1 parent d3ed754 commit 0fb3ead
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/resolvers/md2html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export async function resolveMd2HTML(options: ResolverOptions): Promise<ResolveM
const transformFn: Function = FileTransformer[fileExtension];
const {result} = transformFn(content, {path: inputPath});

if (result.html) {
result.html = result.html.replace(/\n+/gm, '');
}

const updatedMetadata =
metadata && metadata.isContributorsEnabled
? await getUpdatedMetadata(metadata, content, result?.meta)
Expand Down

0 comments on commit 0fb3ead

Please sign in to comment.