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

Fenced code blocks: Compatibility with pandoc #29

Closed
nthiery opened this issue Sep 16, 2015 · 4 comments
Closed

Fenced code blocks: Compatibility with pandoc #29

nthiery opened this issue Sep 16, 2015 · 4 comments

Comments

@nthiery
Copy link

nthiery commented Sep 16, 2015

When converting Rst to markdown, and writing a fenced code block,
pandoc insert a space between the triple quotes and the options:

mistral-/tmp>cat bla.rst 
.. code:: python

    1+1

mistral-/tmp>pandoc bla.rst -t markdown
``` {.sourceCode .python}
1+1
```

However, when converting this further to a notebook, notedown seems
to get confused by this additional space, and does not produce a block
as desired.

Sorry, that later part is not super specific. I'll provide a complete
example later on, but right now I broke notedown on my machine while
hacking around ...

Would it be possible to tweak notedown's regexp to tolerate this
additional space?

Btw: thanks a lot for notedown! That's going to be super useful in my
Rst -> notebook workflow!

@aaren
Copy link
Owner

aaren commented Sep 17, 2015

Should be a simple change to the regex. I'll fix next week. Thanks for reporting!

@nthiery
Copy link
Author

nthiery commented Sep 21, 2015

On Thu, Sep 17, 2015 at 04:38:53AM -0700, aaren wrote:

Should be a simple change to the regex. I'll fix next week. Thanks for
reporting!

Great, looking forward to it. Thanks in advance!

            Nicolas

Nicolas M. Thiéry "Isil" nthiery@users.sf.net
http://Nicolas.Thiery.name/

@aaren aaren closed this as completed in ed15ed7 Sep 22, 2015
@aaren
Copy link
Owner

aaren commented Sep 22, 2015

I think that should have fixed your problem. Please say if not.

@nthiery
Copy link
Author

nthiery commented Sep 22, 2015

Working beautifully! That's open source in action :-)
Thanks much.

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