scttcper / ngx-codemirror

Codemirror Wrapper for Angular
https://ngx-codemirror.vercel.app
MIT License
282 stars 47 forks source link

Line numbers overlapped with code #288

Closed rochapablo closed 4 years ago

rochapablo commented 4 years ago

Is there a fix to this?

image

<ngx-codemirror name="value" [(ngModel)]="model.value" [options]="{ lineNumbers: true, autoRefresh: true, mode: 'markdown' }"></ngx-codemirror>

main.ts

import 'codemirror/mode/markdown/markdown';
import 'codemirror/addon/display/autorefresh';

packages

"@ctrl/ngx-codemirror": "^4.0.1",
"codemirror": "^5.58.1",
rochapablo commented 4 years ago

https://github.com/scttcper/ngx-codemirror/issues/192#issuecomment-709964311