JSPM

@gmod-workshop/steamdown

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q44776F
  • License MIT

Convert Markdown to Steam BBCode

Package Exports

  • @gmod-workshop/steamdown

Readme

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.