Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make spliting of blocks for any markdown content #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PrajwolAmatya
Copy link
Collaborator

@PrajwolAmatya PrajwolAmatya commented Jan 31, 2025

Description

When code block having empty line within the block, was added in the same slide with alerts, then the blocks were not rendered as expected. Likewise, with other markdown contents. So, proper splitting need to be done. So, with this PR the splitSlideContentIntoBlocks function is refined to support different markdown contents.

  • Updated the spitSlideContentIntoBlocks functionality to split all markdown content
  • Added unit test for splitSlideContentIntoBlocks

@PrajwolAmatya PrajwolAmatya force-pushed the fix-split-blocks branch 2 times, most recently from 11bc391 to 2efdff7 Compare February 3, 2025 03:40
@PrajwolAmatya PrajwolAmatya self-assigned this Feb 3, 2025
@PrajwolAmatya PrajwolAmatya marked this pull request as ready for review February 3, 2025 03:57
@PrajwolAmatya PrajwolAmatya force-pushed the fix-split-blocks branch 2 times, most recently from 3da1bec to 0adfc12 Compare February 3, 2025 10:39
Copy link
Collaborator

@nirajacharya2 nirajacharya2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use else if if its possible. and also keep the shorter if cases together

plugin/awesoMD/plugin.js Outdated Show resolved Hide resolved
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
inCodeBlock = !inCodeBlock
return
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed 1 line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we can do it but lets make the code more readable. It will be easy to understand the code.

@PrajwolAmatya PrajwolAmatya requested review from nirajacharya2 and individual-it and removed request for nirajacharya2 and individual-it February 4, 2025 08:54
@PrajwolAmatya PrajwolAmatya marked this pull request as draft February 5, 2025 09:25
@PrajwolAmatya PrajwolAmatya marked this pull request as ready for review February 6, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants