5

In this view data mathjax is working well but when we add enter in textarea it is not going new line. when we post something like this

a) A
b) B
c) C
then it display a) A b) B c) C
I want to display it like in data-mathjax-bind
a) A
b) B
c) C
how to solved this?
<div class="question-title-preview">
   <span data-mathjax-bind="question.titleDisplay"></span>
</div>
5
  • 1
    share mode code Commented Feb 24, 2017 at 9:24
  • Are you including the newline character after each option? Commented Feb 24, 2017 at 9:26
  • @SylvanDAsh , I am not including any newline charector in textarea . simply pressed enter key . before i used ckeditor for this but it showed as <p>sdf</p> <p>sd</p> <p>sd</p> Commented Feb 24, 2017 at 9:35
  • So when you press enter (inside the textarea), it doesn't go to the next line? Commented Feb 24, 2017 at 9:40
  • @SylvanDAsh, it goes to next line in textarea but not showed in data-mathjax-bind(automatic typing when we typed in textarea) Commented Feb 24, 2017 at 9:54

1 Answer 1

2

When i put $ \\ $ then it takes new line but I want through codeing e.g. $ 1)abcd\\ 2)efgh $ it shows me

    1) abcd
    2) efgh

 how can i do it through codeing?
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.