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

fill-paragraph shoudn't break inline R code chunks #160

Closed
lgatto opened this issue Aug 24, 2016 · 2 comments
Closed

fill-paragraph shoudn't break inline R code chunks #160

lgatto opened this issue Aug 24, 2016 · 2 comments

Comments

@lgatto
Copy link

lgatto commented Aug 24, 2016

When using markdown-mode with R, fill-paragraph breaks in-line code. For example

These data are directly available from the `r Biocexptpkg("pRolocdata")` package.

produces

These data are directly available from the `r
Biocexptpkg("pRolocdata")` package

which is then simply formatted as in-line code, rather then being interpreted, as illustrated below

2016-06-01-095008_851x204_scrot

This is possibly related to #159.

I would be happy to try to fix this with some help to get started.

I am currently using

     Status: Installed in `~/.emacs.d/elpa/markdown-mode-20160803.1848/' (unsigned).
    Archive: n/a
    Version: 20160803.1848
   Requires: emacs-24, cl-lib-0.5
    Summary: Major mode for Markdown-formatted text
   Homepage: http://jblevins.org/projects/markdown-mode/
   Keywords: markdown github flavored markdown itex 
    Other versions: 20160803.1848 (melpa), 2.1 (melpa-stable).
@jrblevin
Copy link
Owner

Markdown allows line breaks in inline code fragments, so this isn't exactly a bug. I recognize that it's not the desired behavior in the case of linking to R packages, but that's a rather special case. Perhaps this should be fixed on the R side: why not parse the links across line breaks when that's perfectly valid Markdown?

@lgatto
Copy link
Author

lgatto commented Aug 26, 2016

It's not really a link parsing issue. The problem is that when inline code fragments are line-broken, the R code is not interpreted any more. But, yes, if markdown supports line breaks in inline code, I suppose the code evaluation should do too. I'll try to investigate further. Thanks!

@lgatto lgatto closed this as completed Aug 26, 2016
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

2 participants