All Projects → adamisntdead → Console.md

adamisntdead / Console.md

Ever dreamed of rendering Markdown in the console? No. Neither had I.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Console.md

Colorette
Easily set the color and style of text in the terminal.
Stars: ✭ 1,047 (+4262.5%)
Mutual labels:  console, browser
Tiza
Console styling for browsers
Stars: ✭ 74 (+208.33%)
Mutual labels:  console, browser
Langterm
🕹️ WebGL-based VT220 emulator, made as a learning example and frontend for a text adventure
Stars: ✭ 35 (+45.83%)
Mutual labels:  console, fun
Web Console
Simple web-based shell, remote shell in your browser
Stars: ✭ 1,344 (+5500%)
Mutual labels:  console, browser
Consoleimg
Display images in your developer console!
Stars: ✭ 132 (+450%)
Mutual labels:  console, fun
Whatspup
🔳 WhatsApp chat from commandline/console/cli using GoogleChrome puppeteer
Stars: ✭ 310 (+1191.67%)
Mutual labels:  console, fun
Asciichart
Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS, browsers and terminal, no dependencies
Stars: ✭ 1,107 (+4512.5%)
Mutual labels:  console, browser
Leash
Browser Shell
Stars: ✭ 108 (+350%)
Mutual labels:  console, browser
Console Badge
🎨 Create simple badges in the browser console
Stars: ✭ 130 (+441.67%)
Mutual labels:  console, browser
Filter Console
Filter out unwanted `console.log()` output
Stars: ✭ 203 (+745.83%)
Mutual labels:  console, browser
Konsul
A react renderer for browser's dev console
Stars: ✭ 605 (+2420.83%)
Mutual labels:  console, browser
Pokedexvuejs
A Pokedex that will contain all 807 pokemon from the Pokemon series. Created in Vue.js
Stars: ✭ 19 (-20.83%)
Mutual labels:  fun
Win Lock Screen
🔒 Enable / Disable the Lock Screen for Windows 8, 8.1 & 10.
Stars: ✭ 6 (-75%)
Mutual labels:  hacks
Tridentsandbox
An In-Browser Scripting IDE for HTML5/Javascript
Stars: ✭ 5 (-79.17%)
Mutual labels:  browser
Logging Helpers
Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.
Stars: ✭ 5 (-79.17%)
Mutual labels:  console
Defiant.js
http://defiantjs.com
Stars: ✭ 907 (+3679.17%)
Mutual labels:  browser
Terminalview
Terminal inside Sublime Text 3 view
Stars: ✭ 897 (+3637.5%)
Mutual labels:  console
Console Ultimate
Node-compatible `console` object with extra features
Stars: ✭ 5 (-79.17%)
Mutual labels:  console
Qutebrowser
A keyboard-driven, vim-like browser based on PyQt5.
Stars: ✭ 7,401 (+30737.5%)
Mutual labels:  browser
Arbitrary Image Stylization Tfjs
Arbitrary style transfer using TensorFlow.js
Stars: ✭ 822 (+3325%)
Mutual labels:  browser

console.md

Ever dreamed of rendering Markdown in the console? No. Neither have I.

Check out the demo! Go to this page and open the console!

But, it's possible, and it works cross browser! So to you, I now present: console.md - Render markdown in the console! 💪🔮

At the moment, not all features of markdown are supported, what is, is detailed in the example below. You should note that it looks really good in Firefox, but neither firefox or safari supports images. Chrome, however works with all of the implemented features!

Usage

This library is a browser only library. It's usable in chrome. If you are using something like rollup, webpack or other bundlers, you can use this through npm.

$ npm install --save console-markdown

Otherwise, just download the bundle.js file from this repo, and add it to your html file

<script src="bundle.js"></script>

The module adds a method to the console object - console.md. Just call it with some markdown!

const markdown = `# Welcome!

This is markdown! I can do *lots* of **really** ~~boring~~ interesting stuff!

I can, for example give a [link](https://github.com). Notice that the url is put beside the text
and in brackets.

For now, only a subset of the whole markdown syntax is supported, but I do have the following working:

* All headings
* Standard text
* Bold text
* Inline code
* Block code (although not highlighted)
* Images (only at full size)
* Links (kind of)


The code above was rendered from the markdown

\`\`\`markdown
# Welcome!

This is markdown! I can do *lots* of **really** ~~boring~~ interesting stuff!

I can, for example give a [link](https://github.com). Notice that the url is put beside the text
and in brackets.

For now, only a subset of the whole markdown syntax is supported, but I do have the following working:

* All headings
* Standard text
* Bold text
* Inline code
* Block code (although not highlighted)
* Images (only at full size)
* Links (kind of)
\`\`\`


As you may be able to see, there is a few layout issues, but they are to be expected (it is the \`console\` you know!).
There is image support, but they can only appear at full size at the moment. ![](https://www.fillmurray.com/g/800/450).

Also, no raw html is supported, it all must be vanilla markdown 💔.
(Oh, emojis work too! 🔮✨🌟🎶💫☄️⭐️🎤🎧💎)
`;

console.md(markdown)

While will output:

output

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].