Skip to content

gmod-workshop/steamdown

Repository files navigation

steamdown

Test NPM Version

Convert Markdown to Steam BBCode.

Installation

npm install @gmod-workshop/steamdown

Usage

import { Converter } from '@gmod-workshop/steamdown';

const converter = new Converter();
const bbcode = await converter.convert('paragraph');

Features

Supported Markdown Syntax

  • Paragraph
  • Heading
  • Blockquote
  • List (ordered and unordered)
  • Table
  • Code
  • Horizontal Rule
  • Emphasis
  • Strong
  • Link
  • Image
  • Strikethrough

Partially Supported Markdown Syntax

  • Codespan
    • Inline code is not supported by Steam BBCode.
    • Rendereded as quoted text.
    • Example: `codespan` -> 'codespan'
  • HTML
    • HTML is not supported by Steam BBCode. Rendereded as is.
  • Checkbox
    • Rendereded as a emoji checkbox.
    • Example:
      • - [x] item -> '✅ item'
      • - [ ] item -> '⬜ item'

Unsupported Markdown Syntax

  • Autolink
  • Footnote
  • Definition List
  • Abbreviation
  • Footnote

Reference

The following references were used to create this library. If you believe any of the information is incorrect, please open an issue.

About

Convert Markdown to Steam BBCode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published