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

feat: paragraphs element enclosure. (IMPARTIAL) #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

buddy-web3
Copy link
Member

No description provided.

Copy link
Collaborator

@mruwnik mruwnik left a comment

Choose a reason for hiding this comment

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

I don't like how this adds extra complexity - if possible it would be best to avoid HTML in the markdown. I'm not sure how possible it is to do this without deep hackery, in which case it would seem better to just say that this is a limitation of the system, rather than add more hacks

@@ -266,7 +277,8 @@ export const parseParagraph = (documentContext) => (paragraph) => {
leadingSpace +
itemMarker +
prefix +
md.join("").replaceAll("\n", "\n" + leadingSpace)
md.join("").replaceAll("\n", "\n" + leadingSpace)+
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will only work with one newline - if there are more, it will result in somwthing like:

<div>
bla bla bla
<div>ble ble ble
<div>bla bla bla
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants