Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2017-08-09 19:57:28 +0300
committerYihui Xie <xie@yihui.name>2017-08-09 19:57:28 +0300
commitdcb90d489cfc0d4500b2e4452841a8190cb9b30a (patch)
tree808e9fc21b353c5994c50da96d9ce197aa6f9bd7
parent412c0591715610b9ce78509a127de31526d83764 (diff)
do not mention new_post()
-rw-r--r--exampleSite/content/post/2017-02-14-hello-markdown.md8
1 files changed, 1 insertions, 7 deletions
diff --git a/exampleSite/content/post/2017-02-14-hello-markdown.md b/exampleSite/content/post/2017-02-14-hello-markdown.md
index f694f16..30b62df 100644
--- a/exampleSite/content/post/2017-02-14-hello-markdown.md
+++ b/exampleSite/content/post/2017-02-14-hello-markdown.md
@@ -34,13 +34,7 @@ There are many differences in syntax between Blackfriday's Markdown and Pandoc's
Similarly, Blackfriday does not support LaTeX math and Pandoc does. I have added the MathJax support to this theme ([hugo-xmin](https://github.com/yihui/hugo-xmag)) but there is a caveat for plain Markdown posts: you have to include math expressions in a pair of backticks (inline: `` `$ $` ``; display style: `` `$$ $$` ``), e.g., `$S_n = \sum_{i=1}^n X_i$`.^[This is because we have to protect the math expressions from being interpreted as Markdown. You may not need the backticks if your math expression does not contain any special Markdown syntax such as underscores or asterisks, but it is always a safer choice to use backticks. When you happen to have a pair of literal dollar signs inside the same element, you can escape one dollar sign, e.g., `\$50 and $100` renders "\$50 and $100".] For R Markdown posts, you do not need the backticks, because Pandoc can identify and process math expressions.
-When creating a new post, you have to decide whether the post format is Markdown or R Markdown, and this can be done via the `rmd` argument of the function `blogdown::new_post()`, e.g.
-
-```r
-blogdown::new_post("Post Title", rmd = FALSE)
-```
-
-Actually I recommend you to use the RStudio addin "New Post" instead:
+When creating a new post, I recommend you to use the RStudio addin "New Post":
![RStudio addin New Post](https://bookdown.org/yihui/blogdown/images/new-post.png)