Skip to content

tutts/google-sites-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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/tutts/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> 

About

Script to support Markdown in Google Sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published