• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
Wiki (mostly outdated)
Technology Chart
Rep hack list
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
Mactan Network
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum Discovery Unofficial Development
1 2 3 4 Next »
PostCreator (Markdown to forum BBCode converter)

Server Time (24h)

Players Online

Events
If you can see this you have JavaScript disabled

Latest activity

PostCreator (Markdown to forum BBCode converter)
Offline Corile
01-21-2017, 01:07 PM,
#1
C::iemka pl
Posts: 3,194
Threads: 262
Joined: Apr 2014

I wrote a little web app for my own good but I figured it's kind of useful for other people so I'm gonna publish it cause why not. I can't be arsed with writing exactly how to use it so I'm generally going to assume that you have a brain (far fetched for some people, I know) and can figure it out for yourself.

PostCreator

This tool's job is generally what it says on the tin, converts Markdown code to BBcode, however it's not fully feature rich and only converts the following: h1, h2, h3, bold, italic, bold+italic, strikethrough, code, img and url. The point of it is that my forum writing started changing from using the forum editor to first writing everything in something like Typora and then manually inserting all the forum bbcode in place of the Markdown. After doing it once I figured I'm lazy so it would be nice to automate it. Therefore this.

Regarding UI, the top two fields are for opening and closing tags (these go at the beginning and end of your post), the next three are for substitutes of Markdown headers, from left to right h1 (# header), h2 (## header) and h3 (### header). The rest is pretty self explanatory.

Here's a quick demo with default settings.

input:
Code:
# Markdown

**Markdown** is a [lightweight markup language](https://en.wikipedia.org/wiki/Lightweight_markup_language) with plain text formatting syntax designed so that it can be converted to [HTML](https://en.wikipedia.org/wiki/HTML) and many other formats using a tool by the same name. Markdown is often used to format [readme files](https://en.wikipedia.org/wiki/README), for writing messages in online discussion forums, and to create [rich text](https://en.wikipedia.org/wiki/Formatted_text) using a [plain text](https://en.wikipedia.org/wiki/Plain_text) [editor](https://en.wikipedia.org/wiki/Text_editor).



## History

[John Gruber](https://en.wikipedia.org/wiki/John_Gruber) created the Markdown language in 2004 in collaboration with [Aaron Swartz](https://en.wikipedia.org/wiki/Aaron_Swartz) on the syntax, with the goal of enabling people "to write using an easy-to-read, easy-to-write plain text format, and optionally convert it to structurally valid [XHTML](https://en.wikipedia.org/wiki/XHTML) (or [HTML](https://en.wikipedia.org/wiki/HTML))".

The key design goal is *readability* – that the language be readable as-is, without looking like it has been marked up with tags or formatting instructions, unlike text formatted with a [markup language](https://en.wikipedia.org/wiki/Markup_language), such as [Rich Text Format](https://en.wikipedia.org/wiki/Rich_Text_Format) (RTF) or HTML, which have obvious tags and formatting instructions. To this end, its main inspiration is the existing [conventions](https://en.wikipedia.org/wiki/Convention_(norm)) for marking up [plain text](https://en.wikipedia.org/wiki/Plain_text) in [email](https://en.wikipedia.org/wiki/Email), though it also draws from earlier markup languages, notably [setext](https://en.wikipedia.org/wiki/Setext), [Textile](https://en.wikipedia.org/wiki/Textile_(markup_language)), and [reStructuredText](https://en.wikipedia.org/wiki/ReStructuredText).



### Standardization

There is no clearly defined Markdown standard, apart from the original writeup and implementation by John Gruber, which some consider [abandonware](https://en.wikipedia.org/wiki/Abandonware). This has led to [fragmentation](https://en.wikipedia.org/wiki/Fragmentation_(programming)) as different vendors write their own variants of the language to correct flaws or add missing features.

Output:

Quote:
Markdown
Markdown is a lightweight markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name. Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor.



History
John Gruber created the Markdown language in 2004 in collaboration with Aaron Swartz on the syntax, with the goal of enabling people "to write using an easy-to-read, easy-to-write plain text format, and optionally convert it to structurally valid XHTML (or HTML)".

The key design goal is readability – that the language be readable as-is, without looking like it has been marked up with tags or formatting instructions, unlike text formatted with a markup language, such as Rich Text Format (RTF) or HTML, which have obvious tags and formatting instructions. To this end, its main inspiration is the existing conventions) for marking up plain text in email, though it also draws from earlier markup languages, notably setext, Textile), and reStructuredText.



Standardization
There is no clearly defined Markdown standard, apart from the original writeup and implementation by John Gruber, which some consider abandonware. This has led to fragmentation) as different vendors write their own variants of the language to correct flaws or add missing features.

Same input but slightly tweaked settings
Quote:

Markdown
Markdown is a lightweight markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name. Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor.



History
John Gruber created the Markdown language in 2004 in collaboration with Aaron Swartz on the syntax, with the goal of enabling people "to write using an easy-to-read, easy-to-write plain text format, and optionally convert it to structurally valid XHTML (or HTML)".

The key design goal is readability – that the language be readable as-is, without looking like it has been marked up with tags or formatting instructions, unlike text formatted with a markup language, such as Rich Text Format (RTF) or HTML, which have obvious tags and formatting instructions. To this end, its main inspiration is the existing conventions) for marking up plain text in email, though it also draws from earlier markup languages, notably setext, Textile), and reStructuredText.



Standardization
There is no clearly defined Markdown standard, apart from the original writeup and implementation by John Gruber, which some consider abandonware. This has led to fragmentation) as different vendors write their own variants of the language to correct flaws or add missing features.




Reflections on the Revolution in Gallia
Custodi // High City of Heraklion // The Cult of Archangels
Log Filter // Post Creator // Manhattan
  Reply  
Offline Xenon
11-25-2020, 12:32 PM,
#2
Member
Posts: 1,942
Threads: 141
Joined: Feb 2016

very nice work ... why I didn't notice this before?
Thank you for sharing xD

[Image: Xenon-Shop2-1.png]
☆ NEBULA SHIPPING EXPRESS ☆ NEBULA NEURAL NETWORK ☆ GRAND PLAZA ☆
☆ FEEDBACK ☆ RECRUITMENT ☆ NEBULA TECHNOLOGIES - CAMBRIDGE ☆
WHEN EXCELLENCY BECOMES A HABIT

Reply  


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2023 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode