Code Monkey home page Code Monkey logo

google-sites-markdown's Introduction

Google Sites Markdown

As Google Sites doesn't support Tables or Markdown, this script allows you to write Markdown inside a HTML snippet within Google Sites.

Usage

  1. While editing a Google Site page double click to bring up the page options
  2. Select <> Embed
  3. Change to the Embed Code tab
  4. Paste the code below from the example and replace Markdown with your own
  5. Save

Code snippets

If you wish to use code snippets inside your markdown, you'll need to escape the backticks:

\`\`\`typescript
function getBestHero(spiderman: string): boolean {
  return true
}

const isSpidermanTheBestHero = getBestHero('spiderman')
\`\`\`

Example

<script src="https://cdn.jsdelivr.net/gh/kjambunathan/google-sites-markdown/index.js"></script>

<script>
markdown`
# Superheroes

Look I can write Markdown in Google Sites!

> Are tables now possible?

- [X] Yep!
- [ ] No

## Hero Table

| ID  | Name         | Hero      |
| --- | ------------ | --------- |
| 1   | Peter Parker | Spiderman | 
| 2   | Bruce Wayne  | Batman    |

*What about lists?*

- Yep
- Hooray! ๐ŸŽ‰
`
</script> 

google-sites-markdown's People

Contributors

tutts avatar kjambunathan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.