Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Org-Mode Inline Code with Equals Signs

Tags:

In org-mode, I want to give inline code with equals signs and quotation marks:

<div class="foo"> 

The way I would normally do this in org-mode is

=<div class="foo">= 

When I export this to HTML, it gets rendered like this:

<div class"foo">=

What is the right way to do this inline (rather than just creating a source block)?

like image 868
alexplanation Avatar asked Jun 05 '13 15:06

alexplanation


2 Answers

You could use verbatim markers, ~, instead:

~<div class="foo">~ 
like image 68
legoscia Avatar answered Sep 22 '22 15:09

legoscia


The problem is that the equals sign after 'class' is interpreted as the closing code section delimiter. You can prevent this by inserting a space before the equals sign, like this:

=<div class = "foo">= 
like image 28
Ista Avatar answered Sep 21 '22 15:09

Ista