Skip to content

Instantly share code, notes, and snippets.

@jusleg
Last active May 25, 2020 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jusleg/e65c9b9db57f0e7831f01ef5b25f788d to your computer and use it in GitHub Desktop.
Save jusleg/e65c9b9db57f0e7831f01ef5b25f788d to your computer and use it in GitHub Desktop.

Hey there 👋 This is a demo of our current rendering engine for articles.by. I got sick of medium putting a paywall on every articles. If you ever wrote Markdown on Reddit, Discourse, or GitHub, you are pretty much good to go. We support the basic mardown thing like links, italic, bold, strikethrough, and a mix of all of them.

We got

a

couple

headers

h1 to h6 to be exact.

You can quote

stuff

and use

multiple levels

- Anonymous

  • make
    • a
      • list
  1. or
  2. use
  3. numbers
Default Header Left Align Right Align Center Align
wow we support tables_that_overflow_without_looking_weird

a nice image

wow it's a gif

oh and we support code embed

print("hello world")

Even some with custom highlighting

puts "hello world"

We have a bunch of different styling to use

(you can click the little links 🔗 above and it will scroll down #magic #DavidBlaine)

```[language of your choice]~[theme]

your nice code goes here

```

default (github)

10.times do |i|
  puts i
end

base16

10.times do |i|
  puts i
end

bw

10.times do |i|
  puts i
end

colorful

10.times do |i|
  puts i
end

gruvbox

10.times do |i|
  puts i
end

igorpro

10.times do |i|
  puts i
end

magritte

10.times do |i|
  puts i
end

molokai

10.times do |i|
  puts i
end

monokai

10.times do |i|
  puts i
end

monokai_sublime

10.times do |i|
  puts i
end

pastie

10.times do |i|
  puts i
end

thankful_eyes

10.times do |i|
  puts i
end

tulip

10.times do |i|
  puts i
end

it also should support themes that are invalid and default to no highlighting

10.times do |i|
  puts i
end

We also plan to support oembed but this is currently being worked on. That's pretty much it for now. You can also view the file that was used to generate this article here.

Bye 👋


Written by Justin


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment