Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to generate .md output instead of .html #165

Closed
yihui opened this issue Jul 26, 2017 · 7 comments
Closed

Provide a way to generate .md output instead of .html #165

yihui opened this issue Jul 26, 2017 · 7 comments
Milestone

Comments

@yihui
Copy link
Member

yihui commented Jul 26, 2017

When the user does not really need Pandoc's Markdown, and the post does not contain HTML widgets, plain Markdown output may suffice and there is no need to go through Pandoc.

@znmeb
Copy link

znmeb commented Jul 26, 2017

Would it go through Hugo's Markdown processor then?

@yihui
Copy link
Member Author

yihui commented Jul 26, 2017

Yes.

@znmeb
Copy link

znmeb commented Jul 26, 2017

Sounds good to me.

@jemus42
Copy link

jemus42 commented Jul 26, 2017

I'm currently trying to get table of contents to work with .Rmd posts, and I figured that my template's {{ .TableOfContents }} is ignored because Hugo only sees the generated html, so this would work in my favor as well and I won't need to open a separate issue about it (which is why I came here just now) \o/

@yihui
Copy link
Member Author

yihui commented Jul 27, 2017

@jemus42 Please see https://bookdown.org/yihui/blogdown/output-format.html for how to get a TOC for R Markdown posts.

@jemus42
Copy link

jemus42 commented Jul 27, 2017

@yihui Yes, that works to get a basic toc, but that output does not match the toc as generated by hugo, and it's not possible to integrate it into my hugo template, which makes it both difficult to style and not match the tocs in other blogposts :/

@yihui
Copy link
Member Author

yihui commented Aug 9, 2017

Implemented. Use the filename extension .Rmarkdown instead of .Rmd to get Markdown output instead of HTML.

@apreshill apreshill mentioned this issue Sep 23, 2020
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants