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

html5 preset not complete #172

Open
cgorrieri opened this issue Feb 27, 2023 · 1 comment
Open

html5 preset not complete #172

cgorrieri opened this issue Feb 27, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request P2 Normal issue

Comments

@cgorrieri
Copy link

Looking at the official definition of tags https://www.bbcode.org/reference.php the HTML5 preset is incomplete.
Is there a plan to add the missing tags?

@JiLiZART
Copy link
Owner

JiLiZART commented Mar 1, 2023

Thanks for your issue. Yes, I can add full support for bbcode tags in future.
Also when I developed html5 preset I look at https://en.wikipedia.org/wiki/BBCode

For workaround you can try to extend existing html5 preset

import presetHTML5 from '@bbob/preset-html5';

const yourOwnPreset = presetHTML5.extend((tags) => ({
  ...tags,

  yourTag: (node) => ({
    tag: 'span',
    attrs: {
      style: 'font-weight: bold'
    },
  }),
}));

@JiLiZART JiLiZART added the enhancement New feature or request label Aug 18, 2023
@JiLiZART JiLiZART self-assigned this Aug 18, 2023
@JiLiZART JiLiZART added the P2 Normal issue label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 Normal issue
Projects
None yet
Development

No branches or pull requests

2 participants