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

Show source for inline code blocks? #890

Closed
audy opened this issue Nov 10, 2014 · 2 comments
Closed

Show source for inline code blocks? #890

audy opened this issue Nov 10, 2014 · 2 comments
Labels
feature Feature requests
Milestone

Comments

@audy
Copy link

audy commented Nov 10, 2014

Inline code blocks r like this are great but the code that generates them are lost in the rendered document.

For HTML, they could be embedded as <acronym> or <abbr>. I'm not sure how the PDF/docx rendering would work.

Just an idea.

@yihui yihui added the feature Feature requests label Nov 10, 2014
@yihui yihui added this to the v1.8 milestone Nov 10, 2014
@yihui yihui closed this as completed in 0d77f08 Nov 10, 2014
@yihui
Copy link
Owner

yihui commented Nov 10, 2014

I added a function inline_expr() for you to do that. You may also obfuscate the backticks, e.g.

`` `r '\x60r like this\x60'` ``

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature requests
Projects
None yet
Development

No branches or pull requests

2 participants