Skip to content

Instantly share code, notes, and snippets.

@ChrisRimmer
Last active January 31, 2023 12:44
Show Gist options
  • Save ChrisRimmer/47699b065053060b5a67a1f2a968af98 to your computer and use it in GitHub Desktop.
Save ChrisRimmer/47699b065053060b5a67a1f2a968af98 to your computer and use it in GitHub Desktop.

A fairly good representation of how we want this answer to render inside the UI can found here, rendered using Github’s Gist renderer. Note that the iframe video embed doesn’t work there, but (almost?) everything else does. Or rather, everything that’s actually been implemented in our own markdown generator is supported! Example to another gdoc on the site.

some(inline).code

<iframe src="https://www.youtube.com/embed/JD_iA7imAPs" title="There's No Rule That Says We'll Make It" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

<- YouTube embed using https://www.youtube-nocookie.com/embed/hEUO6pjwFOo

$100,000 for Tasks Where Bigger AIs Do Worse Than Smaller Ones #short - YouTube <- Short embed (no card is available)

This link to youtube should just be a link though.

This needs a citation1

  1. Numbered

  2. list

And here’s another citation!2

Example description Images!

Some links to other answers! Link to another answer as an internalish link or as a gdoc link. (only the last really needs to work as opening the relevant question as a UI element, but first is a nice bonus)3

A robust pointer to human values: Universal Alignment Test or alternatively this kind of link. Much less important, but if trivial may as well cover it.

// Some code

const foo = () => bar

Some bulletpoints

  • bold, plain italic link

    1. Level 2 nested bullet which is also a heading and contains a link

    2. WHY IS THIS ALSO PREFIXED AS a. IN THE DOC

  • testing

A heading with some bold bits and some italic bits and a link to something and a bit that’s all three

Actually external link!

Bold, italic

This is a quote

This is a second line of the same quote.

This will be on the same line as “This is a second line” etc

This is a second, separate quote

[See more…] <- Marker for dividing the answer with a show more JS thing.

Pulling tags from LW/EAF:

https://www.lesswrong.com/tag/optimization

-> https://www.lesswrong.com/graphql?query={%20tag(input:%20{selector:%20{slug:%20%22**optimization**%22} })%20{%20result%20{%20description%20{%20html%20draftJS%20}%20}%20}%20} -> extract the data “html

https://forum.effectivealtruism.org/topics/existential-risk

-> https://forum.effectivealtruism.org/graphql?query={%20tag(input:%20{selector:%20{slug:%20%22**existential-risk**%22} })%20{%20result%20{%20description%20{%20html%20draftJS%20}%20}%20}%20} -> extract the data “html


Footnotes

  1. Here it is

  2. Such cite, many authoritativeness, and a link!

  3. This is actually a multi-line footnote

    Let’s see what this does!

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