mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2024-11-24 12:21:29 -08:00
50 lines
2.2 KiB
JavaScript
50 lines
2.2 KiB
JavaScript
let defaultText = "# Markdown Editor";
|
|
defaultText += "\n---";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## Markdown Features Below";
|
|
defaultText += "\n* [What is Markdown?](#what-is-markdown)";
|
|
defaultText += "\n* [Quote Blocks](#quote-blocks)";
|
|
defaultText += "\n* [This Is An H2 Header](#this-is-an-h2-header)";
|
|
defaultText += "\n* [Line Breaks](#line-breaks)";
|
|
defaultText += "\n* [Inline Code](#inline-code)";
|
|
defaultText += "\n* [Code Block](#code-block)";
|
|
defaultText += "\n* [Photo of Jupiter](#photo-of-jupiter)";
|
|
defaultText += "\n";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## What is Markdown? ";
|
|
defaultText += "\n You could read the [wikipedia page for markdown](https://en.wikipedia.org/wiki/Markdown)";
|
|
defaultText += "\n";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## Quote Blocks ";
|
|
defaultText += "\nYou will find the following quote from the link above.";
|
|
defaultText += "\n> Markdown is a lightweight markup language with plain-text-formatting syntax. Markdown is a lightweight markup language with plain-text-formatting syntax.";
|
|
defaultText += "\n";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## This Is An H2 Header ";
|
|
defaultText += "\n The **editor** on the left (or above if in portrait orientation) is an input field; ***you can type in it***";
|
|
defaultText += "\n";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## Line Breaks";
|
|
defaultText += "\nUse a double space at the end of a line ";
|
|
defaultText += "\nto add a line break.";
|
|
defaultText += "\n";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## Inline Code";
|
|
defaultText += "\nThis is an example of inline code: ";
|
|
defaultText += "\nType `apt-get update && apt-get dist-upgrade` to update Debian or Ubuntu";
|
|
defaultText += "\n";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## Code Block";
|
|
defaultText += "\nThis is an example of a (python) code block:";
|
|
defaultText += "\n```python";
|
|
defaultText += "\ndef addTogether(x,y):";
|
|
defaultText += "\n return x + y";
|
|
defaultText += "\n# should print 8";
|
|
defaultText += "\nprint(addTogether(5,3))";
|
|
defaultText += "\n```";
|
|
defaultText += "\n";
|
|
defaultText += "\n---";
|
|
defaultText += "\n## Photo of Jupiter";
|
|
defaultText += "\n";
|
|
defaultText += "![Jupiter](PIA23595_hires.jpg)";
|