Skip to content
gohacks.dev
Web

Markdown to HTML Converter

Convert Markdown to HTML with a live preview: headings, lists, links, code blocks, block quotes, tables, task lists and strikethrough.

Free · No sign-up · Your inputs stay in your browser

Input

Convert Markdown to HTML

Output

Output

Deploying a Laravel queue worker

Run workers under Supervisor so they restart when they crash, and always restart them on deploy.

Steps

  1. Install Supervisor
  2. Add a program file
    • one process per CPU core
    • stopwaitsecs longer than your longest job
  3. Reload: supervisorctl update

A worker that is not restarted keeps running the old code.

php artisan queue:restart
DriverGood for
redismost apps
databaseno extra service
  • Workers supervised
  • Horizon installed

See the Laravel queue docs.

Raw HTML in the Markdown is escaped rather than passed through, and link targets other than http, https, mailto, tel and relative paths become #, so the output is safe to show. For full CommonMark conformance in production, use a tested parser: league/commonmark in PHP, markdown-it or marked in JavaScript.

Runs in this browser. Nothing you paste is sent to a server.

Safe by default

Markdown allows raw HTML, so rendering untrusted Markdown as-is is an XSS hole. This converter escapes any HTML in the input and replaces javascript: and data: links. A production pipeline should do the same: league/commonmark in PHP has html_input set to escape or strip, and JavaScript renderers are usually paired with a sanitizer such as DOMPurify.

Which Markdown

CommonMark is the specification most renderers follow; GitHub Flavored Markdown adds tables, task lists, strikethrough and autolinks. This tool covers what documentation and READMEs use; for full conformance, use one of those tested parsers. Laravel's Str::markdown() wraps league/commonmark.

Share

Frequently asked questions

Is raw HTML in my Markdown kept?
No, it is escaped and shown as text. That keeps the output safe to display.
Does it support tables?
Yes, GitHub-style pipe tables with a delimiter row, including column alignment with colons.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Keep planning

Similar tools