Converter.MarkdownToBBCodeNM.Tool
1.0.0.12
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global Converter.MarkdownToBBCodeNM.Tool --version 1.0.0.12
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Converter.MarkdownToBBCodeNM.Tool --version 1.0.0.12
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Converter.MarkdownToBBCodeNM.Tool&version=1.0.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Converter.MarkdownToBBCodeNM.Tool --version 1.0.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Converter.MarkdownToBBCodeNM
Converts Markdown into NexusMods BBCode. Might be opionated with the HTML conversion, since there are a few ways to interpret HTML
Installation
dotnet tool install -g Converter.MarkdownToBBCodeNM.Tool
Usage
When installed as a global tool:
markdown_to_bbcodenm -i "**raw markdown**"
markdown_to_bbcodenm -i "~~raw\r\nmarkdown~~" --disableextended
markdown_to_bbcodenm -i "/markdown.md";
markdown_to_bbcodenm -i "/markdown.md" -o "/bbcode.txt";
-i or --input accepts both raw markdown and a file path.
-o or --output accepts a file path. If specified, will write the
converted BBCode to the file instead of outputting to the console.
-d or --disableextended will disable newline detection via two spaces
and will disable HTML conversion
Example
At the time of writing the tool, it was used to keep in sync the description of the BLSE mod for Bannerlord.
BLSE - GitHub → NexusMods
Notes
- You can ignore an HTML element by adding
converter_ignoreattribute to the element<p converter_ignore>WILL NOT BE CONVERTED TO BBCODE</p> - You can set an alternative
hreffor an image for NexusMods by adding anexusmods_hrefattribute to the element<a href="MARKDOWN_LINK" nexusmods_href="NEXUSMODS_LINK" /> </a> - You can set an alternative
srcfor an image for NexusMods by adding anexusmods_srcattribute to the element<img src="MARKDOWN_IMAGE" nexusmods_src="NEXUSMODS_IMAGE" />
Supporting Codes
| BBCode | Markdown | Implementation |
|---|---|---|
| [b]TEXT[\b] | **TEXT** | Markdown |
| [i]TEXT[/i] | *TEXT* | Markdown |
| [u]TEXT[/u] | <ins>TEXT</ins> OR <u>TEXT</u> | HTML |
| [s]TEXT[/s] | ~~TEXT~~ | Markdown |
| [url=URL]TEXT[/url] | [TEXT](URL) | Markdown |
| [img]URL[/img] |  | Markdown |
| [quote]TEXT[/quote] | > TEXT | Markdown |
| [quote AUTHOR]TEXT[/quote] | > TEXT | Markdown |
| [code]CODE[/code] | ```CODE``` | Markdown |
| [list=1][*]ENTRY[/list] | 1. ENTRY | Markdown |
| [list][*]ENTRY[/list] | * ENTRY | Markdown |
| [line] | <hr/> | HTML |
| [color=COLOR]TEXT[/color] | ||
| [font=FONT]TEXT[/font] | ||
| [center]TEXT[/center] | <p align="center">TEXT</p> | HTML |
| [right]TEXT[/right] | <p align="right">TEXT</p> | HTML |
| [left]TEXT[/left] | <p align="left">TEXT</p> | HTML |
| [size=1]TEXT[/size] | ###### TEXT | Markdown |
| [size=2]TEXT[/size] | ##### TEXT | Markdown |
| [size=3]TEXT[/size] | #### TEXT | Markdown |
| [size=4]TEXT[/size] | ### TEXT | Markdown |
| [size=5]TEXT[/size] | ## TEXT | Markdown |
| [size=6]TEXT[/size] | # TEXT | Markdown |
| [spoiler]SUMMARY\n\rTEXT[/spoiler] | <details><summary>SUMMARY</summary>TEXT</details> | HTML |
| [youtube]ID[/youtube] | [https://www.youtube.com/watch?v=ID](https://www.youtube.com/watch?v=ID) | Markdown |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0.17 | 636 | 7/30/2023 |
| 1.0.0.16 | 307 | 7/25/2023 |
| 1.0.0.15 | 345 | 7/24/2023 |
| 1.0.0.14 | 360 | 7/24/2023 |
| 1.0.0.13 | 312 | 7/23/2023 |
| 1.0.0.12 | 298 | 7/22/2023 |
| 1.0.0.11 | 357 | 7/22/2023 |
| 1.0.0.10 | 388 | 7/22/2023 |
| 1.0.0.9 | 359 | 7/21/2023 |
| 1.0.0.8 | 294 | 7/21/2023 |
| 1.0.0.7 | 324 | 7/20/2023 |
| 1.0.0.6 | 266 | 7/20/2023 |
| 1.0.0.5 | 317 | 7/20/2023 |
| 1.0.0.1 | 345 | 7/20/2023 |