0

I'm trying to make a jupyter notebook with rtl language in the markdown cells. The solution for using rtl is given in this answer However, inside the <div> environment markdown syntax does not seem to work. For example:

<div style="direction:rtl">

test
====

</div>

does not print 'test' highlighted.

Is there a way to combine the two?

Community
  • 1
  • 1
Uri Barenholz
  • 693
  • 3
  • 13

1 Answers1

1

The Syntax Rules state:

Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can’t use Markdown-style *emphasis* inside an HTML block.

However, some Markdown implementations have included an optional ability to bypass this rule and parse Markdown formatting inside block-level HTML tags. You need to check the documentation for the Markdown implementation you are using and if it includes such an option, enable that option.

Waylan
  • 37,164
  • 12
  • 83
  • 109
  • Thanks, I'm looking for specific ways to overcome this issue in jupyter notebook, the markdown implementation of which I was unable to find at its main homepage. – Uri Barenholz Jun 10 '16 at 09:52
  • Yeah, I'm not familiar with that project either (never used it) and I couldn't find any useful info when I looked. However, you might want to try the `markdown=1` method as described [here](http://stackoverflow.com/a/35276926/866026). That method is supported by a number of implementations (although some still need it to be enabled). However, as there doesn't appear to be any info about it for your implementation, then perhaps no such support is offered. – Waylan Jun 10 '16 at 13:30