Sign in
Log inSign up

I want to add a line break inside a Code in Markdown!

Manish pamnani's photo
Manish pamnani
·Nov 2, 2018

I want to add a line break inside a Code in Markdown!

I tried :-

  • two spaces at the end and pressing enter
  • '\' at the end of the line
  • '&nbsp' at the end of the line

but nothing seems to work. (I have mentioned expected OUTPUT below)

``
Object.$hooks.call('customizeFormPlaceholder'),{
    "emailid": "Enter your email address",
    "password": "Enter your password"
});
``

expected OUTPUT:-

   Object.$hooks.call('customizeFormPlaceholder'),{
    "emailid": "Enter your email address",
    "password": "Enter your password"
});

but instead i am getting:-

Object.$hooks.call('customizeFormPlaceholder'),{ "emailid": "Enter your email address", "password": "Enter your password" });

Any views on this?