2017-02-24 92 views
5

在该视图中的数据mathjax在数据mathjax绑定HTML视图工作良好,但是当我们添加在textarea的输入它是不会换行。当我们发布这样的事情如何呈现在angularjs

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> 
+1

共享模式代码 –

+0

你,包括每个选项后的换行符? –

+0

@SylvanDAsh,我不包括任何textarea的换行符charector。简单地压回车键。之前我用这个ckeditor但它显示为

sdf

sd

sd

回答

2

当我把$ \\ $那么它需要新的生产线,但我想通过codeing 例如$ 1)abcd\\ 2)efgh $它显示我

1) abcd 
    2) efgh 

how can i do it through codeing?