-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example markdown in the portal editor new section & fix MD view bug
- Example document contains common markdown syntax examples and is pre-loaded in the text area of a new section - Also fix a bug in markdownView where the highlightjs showdown extension was not loading even though `code` was present in the markdown Closes issue #1104
- Loading branch information
Showing
3 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Replace this example with your content. Styling using markdown is supported. | ||
|
||
# Level 1 Header | ||
|
||
Markdown is a simple way to format text. | ||
|
||
## Level 2 Header | ||
|
||
For example, *this text will be italic* and **this text will be bold**. Here is a link to [DataOne](https://www.dataone.org), and here is an equation written using the TeX language: $$ y =X\beta + \epsilon $$. | ||
|
||
Add an image like so: ![DataOne logo](https://www.dataone.org/sites/default/files/d1-logo-v8_aligned_left.png) | ||
|
||
Show in-line code using `single backticks`, or show it as a separate block using triple backticks: | ||
|
||
```r | ||
my_string <- "Check out the code I wrote" | ||
print(my_string) | ||
``` | ||
|
||
Here is how to make a table: | ||
| Tables | Are | Cool | | ||
| ------ | --- | ----- | | ||
| x | a | $1600 | | ||
| y | b | $12 | | ||
| z | c | $1600 | | ||
|
||
The following is an unordered list: | ||
* List item a | ||
* List item b | ||
* List item c | ||
* You can create nested lists by indenting list items by four spaces. | ||
* Sub-item 2 | ||
|
||
This is a numbered list: | ||
1. First | ||
2. Second | ||
3. Third | ||
|
||
To quote some text, just start a line with a `>` character. In the words of Grace Hopper: | ||
> information is more valuable than the hardware which processes it. | ||
You can even add emojis :smile:! | ||
|
||
### More help with markdown | ||
|
||
- [Markdown reference](https://commonmark.org/help/) | ||
- [Ten minute tutorial](https://commonmark.org/help/tutorial/) | ||
- For a longer example where you can also preview the results, checkout the [Showdown Live Editor](http://demo.showdownjs.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters