Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

BBCode AST #10

Closed
TheoryOfNekomata opened this issue Dec 28, 2020 · 2 comments
Closed

BBCode AST #10

TheoryOfNekomata opened this issue Dec 28, 2020 · 2 comments

Comments

@TheoryOfNekomata
Copy link

Considering there is already hast for HTML, I think an HTML-derived language like BBCode could also be implemented with some of the tweaks from generating HTML syntax trees.

The differences between BBCode and HTML is that the former:

  • Can have custom tags
  • Has a different implementation of certain tags, such as url ([url]https://example.com[/url] and [url=https://example.com]Foobar[/url]) img ([img]https://example.com/image.jpg[/img])
    Relevant links:
  • https://www.phpbb.com/community/help/bbcode
@wooorm
Copy link
Member

wooorm commented Dec 28, 2020

Interesting.

What kind of tools do you expect to work on a bbcode AST?

@ChristianMurphy
Copy link
Member

Thanks for starting the discussion @TheoryOfNekomata!
We're in the process unifying ideas in with discussions unifiedjs/collective#44
If you'd like to continue this thread, or start a new one https://github.com/syntax-tree/unist/discussions/categories/ideas will be the home for ideas going forward.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants