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

fix: wrong customInline converting #2275

Merged
merged 6 commits into from
Feb 10, 2022
Merged

fix: wrong customInline converting #2275

merged 6 commits into from
Feb 10, 2022

Conversation

jajugoguma
Copy link
Contributor

Please check if the PR fulfills these requirements

  • It's the right issue type on the title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has a description of the breaking change

Description


Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

Copy link
Contributor

@jwlee1108 jwlee1108 left a comment

Choose a reason for hiding this comment

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

리뷰 완료합니다.

Copy link
Contributor

@js87zz js87zz left a comment

Choose a reason for hiding this comment

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

리뷰 완료입니다!

Comment on lines 376 to 380
text += info;

if (firstChild) {
text += ' ';
}
Copy link
Contributor

Choose a reason for hiding this comment

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

아래처럼 작성하는 건 어떤가요?
text += (firstChild ? `${info} ` : info)

@js87zz js87zz force-pushed the fix/custom-inline-parse branch from 0a00e67 to be63452 Compare February 10, 2022 01:51
@js87zz js87zz merged commit e131a7c into master Feb 10, 2022
@js87zz js87zz deleted the fix/custom-inline-parse branch February 10, 2022 01:57
ahamelers pushed a commit to ahamelers/tui.editor that referenced this pull request Aug 21, 2023
* wip: fix the wrong converting custom inline node

* refactor: improved code readability

* chore: add test cases for custom inline

* chore: fix broken test case

* chore: remove unnecessary comment

chore: revert initial value of demo

* chore: change if statement to conditional operator

Co-authored-by: js87zz <js87zz.lee@nhn.com>
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.

3 participants