Converter.MarkdownToBBCodeNM.Tool 1.0.0.13

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Converter.MarkdownToBBCodeNM.Tool --version 1.0.0.13
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Converter.MarkdownToBBCodeNM.Tool --version 1.0.0.13
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Converter.MarkdownToBBCodeNM.Tool&version=1.0.0.13
nuke :add-package Converter.MarkdownToBBCodeNM.Tool --version 1.0.0.13

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 - GitHubNexusMods

Notes

  • You can ignore an HTML element by adding converter_ignore attribute to the element
    <p converter_ignore>WILL NOT BE CONVERTED TO BBCODE</p>
    
  • You can set an alternative href for a link for NexusMods by adding a nexusmods_href attribute to the element
    <a href="MARKDOWN_LINK" nexusmods_href="NEXUSMODS_LINK" /> </a>
    
  • You can set an alternative src for an image for NexusMods by adding a nexusmods_src attribute 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] ![Alt text](URL) 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 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. 
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 377 7/30/2023
1.0.0.16 162 7/25/2023
1.0.0.15 205 7/24/2023
1.0.0.14 212 7/24/2023
1.0.0.13 167 7/23/2023
1.0.0.12 168 7/22/2023
1.0.0.11 233 7/22/2023
1.0.0.10 244 7/22/2023
1.0.0.9 216 7/21/2023
1.0.0.8 164 7/21/2023
1.0.0.7 197 7/20/2023
1.0.0.6 148 7/20/2023
1.0.0.5 192 7/20/2023
1.0.0.1 206 7/20/2023