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: Add support for target type in anchor tag xhtml & bbcode #843

Closed

Conversation

jtoloui-ibm
Copy link

@jtoloui-ibm jtoloui-ibm commented Aug 13, 2021

Add support for target type in anchor tag xhtml

To support target type in xhtml & bbcode links

  • Included select option: _blank, _self, _top, _parent

@github-actions github-actions bot added the lib label Aug 13, 2021
@jtoloui-ibm jtoloui-ibm changed the title [feature]: Add support for target type in anchor tag xhtml [feature]: Add support for target type in anchor tag xhtml & bbcode Aug 13, 2021
@jtoloui-ibm jtoloui-ibm changed the title [feature]: Add support for target type in anchor tag xhtml & bbcode feat: Add support for target type in anchor tag xhtml & bbcode Aug 13, 2021
src/formats/bbcode.js Outdated Show resolved Hide resolved
Copy link
Owner

@samclarke samclarke left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Could you turn off the auto-formatting? All the white space changes make it very difficult to see what's changed.

This won't be able to be merged until the next breaking as this wouldn't be backwards compatible (not all BBCode parser support targets). If you want to make it into a plugin it could be added now otherwise it will have to wait until the next breaking release.

I'm aiming to get as many bugs fixed as possible before the next breaking release. I'm currently planning to go through all the PRs and sort them out in a few weeks and then release another 3.x version. Hopefully, after that it will only take one more release of bug fixes before a new breaking release.

@samclarke samclarke added this to the v4.0.0 milestone Aug 13, 2021
remove console log

Co-authored-by: John Rayes <[email protected]>
@jtoloui-ibm
Copy link
Author

Thanks for the PR!

Could you turn off the auto-formatting? All the white space changes make it very difficult to see what's changed.

This won't be able to be merged until the next breaking as this wouldn't be backwards compatible (not all BBCode parser support targets). If you want to make it into a plugin it could be added now otherwise it will have to wait until the next breaking release.

I'm aiming to get as many bugs fixed as possible before the next breaking release. I'm currently planning to go through all the PRs and sort them out in a few weeks and then release another 3.x version. Hopefully, after that it will only take one more release of bug fixes before a new breaking release.

Sorry, I'll sort out the formatting and also look into creating a plugin if that would make it easier rather to wait for the next major release.

One question would be, if I go with the plugin route, would you recommend still trying to support BBCode or recommend just creating an xhtml link plugin?

@jtoloui-ibm
Copy link
Author

Hey @samclarke I've recreated this PR as you suggested in a plugin version #844

@samclarke
Copy link
Owner

Closing this in favour of the plugin version #844.

@samclarke samclarke closed this Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants