Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/indiependente/mdtosnowbbcode

Markdown to ServiceNow BBCode
https://github.com/indiependente/mdtosnowbbcode

bbcode golang markdown markdown-to-bbcode servicenow

Last synced: 5 days ago
JSON representation

Markdown to ServiceNow BBCode

Awesome Lists containing this project

README

        

# mdtosnowbbcode
Markdown to ServiceNow BBCode

## What it does
This tool converts Markdown code to ServiceNow compliant BBCode.

## Example
Markdown input
```markdown
## Markdown content
This is example markdown
```code block```
**strong text** ~~strikethrough~~.
```
BBCode output
```html
[code]

Markdown content

This is example markdown
code block
strong text strikethrough.


[/code]
```

## How to install
`go get -u github.com/indiependente/mdtosnowbbcode/cmd/mdtosnow`

## Run
The tool reads content from STDIN and prints the converted text to STDOUT.

`cat markdownfile.md | mdtosnow`

E.g. On macOS

`pbpaste | mdtosnow | pbcopy`

## Manual build
```bash
git clone [email protected]:indiependente/mdtosnowbbcode.git
cd mdtosnowbbcode
make build
cat markdownfile.md | ./mdtosnow
```