Discourse BBCode

:information_source: Summary Discourse BBCode adds the ability to use BBCode to format posts.
:discourse2: Hosted by us? This plugin is available on our Enterprise plans
:mechanic: Self-host Install Install plugins on a self-hosted site
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-bbcode

The Discourse BBCode plugin enhances the Markdown composer [1] with support for the BBCode syntax beyond what is included by default (i.e. [i], [b], [s], [u], [quote], [url], [email] and [code]) to provide a more “BBCode” ™ experience.

Features

Inline constructs

Inline constructs that can be embedded in paragraphs [s]like so[/s].

  • [size=SIZE] : set the size of text

  • [font=FACE]: set the font face for text

  • [color=COLOR]: set the [color=#381]color[/color] of text [/li]

  • [bgcolor=COLOR]: set background color of text

  • [highlight]: Highlight text

  • [small]: Make text very small

  • [aname=NAME]: create an anchor in your document with a name

  • [jumpto=NAME]: jump to anchor created with aname

Multiline constructs

Multline (or block level) constructs encompass a block of text.

[right]
Like this example
[/right]

Multiline constructs must never start or end in the middle of a line.

Lists

[list]
* item
* item
[/list]

or

[ol]
[li]this is a list item[/li]
[/ol]

or

[ul]
[*] this is an item
[*] this is **an** item
[/ul]

Text alignment

[center]
Center some text
[/center]

[right]
Right align some text
[/right]

[left]
Left align some text
[/left]

:warning: Caution: These features can easily be used for abuse by hiding text and making text unreadable. BBCode will also make your markup less understandable.


  1. This plugin is not built for the rich text mode of the composer, so you may need to use the image toggle to switch to Markdown mode when using these codes. If your community relies on this plugin, you can update the default_composition_mode site setting to ensure that members see the Markdown mode of the composer by default. ↩︎

Last edited by @lindsey 2025-10-23T20:00:40Z

Check documentPerform check on document:
50개의 좋아요

3 posts were split to a new topic: Is [hide] supported in the BBCode plugin?

8 posts were split to a new topic: Add composer buttons for tags added by BBCode plugin(s)

여러분, 안녕하세요.
어떤 토픽에 글을 쓰는 것이 더 좋을지 모르겠지만, 이 토픽이 적합할 것 같습니다. 다른 토픽은 닫혀 있거든요.
계획서 하나를 조금 개선해 보았어요.
리뷰를 위해 공유합니다.

https://github.com/DigneZzZ/discourse-markdown-note

[note]Это обычная заметка[/note]

[info]Это информационная заметка[/info]

[warn]Это предупреждение[/warn]

[negative]Это ошибка[/negative]

[positive]Это успех[/positive]

[caution]Это важное предупреждение[/caution]

다크/라이트 모드 감지 기능도 지원하며, 관리자 설정도 가능합니다.

4개의 좋아요

참고로 이 기능을 위한 테마 컴포넌트도 있습니다.

4개의 좋아요

아, 진짜야.
이걸 만들려고 반나절을 날렸는데… 구현 방법을 찾고 있었는데… 쓸 만한 건 하나도 못 찾았어!
고마워!

2개의 좋아요

인증 if call outs에서 플러그인을 생성하는 것에 대해 언급한 적이 있습니다. 따라서 2가 TC(클라이언트 측)와 플러그인(서버 측)의 경로를 지정하도록 만들 수 있을 것입니다.

PDF로 인쇄하는 것과 같은 작업에서 여러분의 플러그인이 더 사용자 친화적일 것이라고 생각합니다.

예를 들어, 여러분의 플러그인은 라이트/다크 모드를 고려합니다.

2개의 좋아요

이 플러그인이 언급된 대로 악용될 수 있다면, 카테고리나 사용자 수준별로 사용 범위를 제한할 수 있도록 하는 것이 합리적입니다. 현재 이 플러그인에는 이러한 기능이 없습니다.

틀린 말일 수 있지만, 대부분의 경우 악의적인 목적으로 텍스트를 숨기는 경우는 드물며, 이 경고는 '무슨 일이 일어날 수 있는지’에 대한 주의사항 역할을 한다고 생각합니다.

이 부분이 걱정된다면 Contribute > Feature 요청을 생성하거나, 예를 들어 [colour][/color]를 입력하는 사람들을 포착하기 위해 감시 단어를 사용할 수 있습니다.

1개의 좋아요

관심 단어 아이디어는 좋은 생각입니다.

1개의 좋아요

마지막 업데이트 이후 BBCode에서 문제가 발생하고 있습니다.

기존 게시물을 수정할 때 다음과 같은 오류가 나타납니다:
“No parser processed bbcode_open token for tag: span, attrs: [[“style”,“color:#d71d1d”]]”

이것은 커뮤니티의 기본 작성자 모드가 새로운 편집기로 설정되어 있기 때문에 발생하는 것입니다. 아직 이 유형의 콘텐츠가 지원되지 않습니다.

이 메시지를 닫고 툴바 왼쪽의 토글을 통해 마크다운 편집기로 전환하거나, CTRL M 키를 눌러도 됩니다. 그러면 평소와 같이 정상적으로 작동할 것입니다.

안녕하세요, 여러분!

제 모듈을 다음과 같이 개선했습니다:

  • 편집기에 버튼 추가
  • 색상 선택 시 관리자 패널의 상호작용성 향상
  • 여러 가지 버그 수정
  • UI 소폭 최적화
  • 영어 언어 적응을 조금 더 개선

새로운 주제를 시작할 때가 된 것 같습니다 :grinning_face_with_smiling_eyes:


영어 Readme