Underscore between words converts it to italic #70

Closed
umeshk opened this Issue Feb 15, 2013 · 3 comments

Comments

Projects
None yet
2 participants

umeshk commented Feb 15, 2013

Hi Guys,

I am using Markdown since 2-3 years. It is very useful tool. But I am facing strange issue that if I write this "I am a very hard_soft person here_there only". Then it converts italic letters from soft to here i.e. "soft person here" will be all in italic and all other are in normal format. But I do not want to those letters to be italic still I want underscore over there.

Is there any workaround for this?
Looking for solution.

Thanks in advance.

Owner

michelf commented Feb 15, 2013

This is standard Markdown syntax. You can escape (prefix with a backslash) underscores to avoid that.

Or you can try PHP Markdown Extra instead, it disallows underscore as emphasis when in the middle of a word.

michelf closed this Feb 15, 2013

umeshk commented Feb 16, 2013

Thanks Michelf.
I have got the latest one from here https://github.com/symphonycms/markdown/blob/master/lib/php-markdown-extra-1.2.6/markdown.php. I will be using PHP Markdown Extra.

Just wondering will there be any issue if I use PHP Markdown Extra. I mean to say are all functions present in PHP Markdown Extra.

Owner

michelf commented Feb 16, 2013

Underscore-emphasis is the only feature from Markdown that works differently in Extra, notwithstanding potential bugs. It's slightly slower to process too, but you probably won't notice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment