Skip to content

Commit

Permalink
fix: add included ignore includes
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed Oct 22, 2024
1 parent 9694660 commit 9711388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform/preprocessors/included/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const index: MarkdownItPreprocessorCb<{

// To reduce file reading we can include the file content into the generated content
if (included) {
const lines = input.split('\n') || [];
const lines = input?.split('\n') || [];

// The finction reads the files from bottom to top(!). It stops the loop if it does not have anything to swap.
// If the function finds something to process then it restarts the loop because the position of the last element has been moved.
Expand Down

0 comments on commit 9711388

Please sign in to comment.