Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/indiependente/mdtosnowbbcode
- Owner: indiependente
- License: mit
- Created: 2020-02-03T11:41:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-13T11:42:02.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T08:07:29.492Z (7 months ago)
- Topics: bbcode, golang, markdown, markdown-to-bbcode, servicenow
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 textstrikethrough.
[/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
```