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

More BGG markup constructs? #1

Open
3 of 5 tasks
lebigot opened this issue Mar 5, 2021 · 3 comments
Open
3 of 5 tasks

More BGG markup constructs? #1

lebigot opened this issue Mar 5, 2021 · 3 comments

Comments

@lebigot
Copy link
Owner

lebigot commented Mar 5, 2021

The following markup constructs are recognized by BGG forums (those that ended up being handled are checked):

  • [u]underline[/u]: does not exist in GitHub Flavored Markdown, and is usually avoided so as to not confuse it with links ⇒ will not implement now.
  • [-]strikethrough[/-] (exists in GitHub Flavored Markdown)
  • [c]monospace/code[/c] (should be standard backpacks).
  • [o]spoiler[/o]
  • [color=blue]Blue text[/color] (maybe convert some standard HTML?)

Can some of them can be reasonably implemented? Ideally, any existing Markdown convention should be favored (for example that of GitHub Flavored Markup).

@jamesnunn
Copy link

jamesnunn commented Jan 19, 2023

Hi @lebigot I've just had reason to be interested in this - good work, I just found something for spoilers: https://gist.github.com/jbsulli/03df3cdce94ee97937ebda0ffef28287?permalink_comment_id=3085188#gistcomment-3085188

I've forked but if you're open to PRs I'll send it your way if I get round to doing any work on it

This and colour are still only html

@lebigot
Copy link
Owner Author

lebigot commented Jan 19, 2023

This sounds interesting, thanks!

What Markdown syntax do you propose for spoilers? I'm not aware of anything official (well, except maybe foldable callouts like in Obsidian, but BoardGameGeek's spoilers are more general).

I'd be happy to iterate with you on a Pull Request!

@jamesnunn
Copy link

Simple, extends existing block quotes: >! and the worst that would happen if an md renderer didn't understand it, is it would show the spoiler

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

No branches or pull requests

2 participants