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

Comments

Projects
None yet
3 participants
@yihui
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

This comment has been minimized.

znmeb commented Jul 26, 2017

Would it go through Hugo's Markdown processor then?

@yihui

This comment has been minimized.

Member

yihui commented Jul 26, 2017

Yes.

@znmeb

This comment has been minimized.

znmeb commented Jul 26, 2017

Sounds good to me.

@jemus42

This comment has been minimized.

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

This comment has been minimized.

Member

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

This comment has been minimized.

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

This comment has been minimized.

Member

yihui commented Aug 9, 2017

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

lorenzwalthert added a commit to lorenzwalthert/blogdown-cactus that referenced this issue Jun 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment