Davide

Results 63 comments of Davide

Well, in that case, it's the editor fault. However, I'm not sure how performances could be improved. That's the current situtation: Highlighting the input content takes a lot of time...

> But from a technical perspective, we cannot avoid the diff, but maybe it's worth a shot to do something with rendering? Something like running the highlighting only for the...

I'm releasing a fix for the infinite loops you noticed(nice catch! 👍 ). I'm not really sure it is also the issue noticed by @colinrobinsonuib, but we'll see. Let me...

@colinrobinsonuib I tried the same thing with the document you provided and the issue is the same I mentioned above: > @BearToCode said: > The issue is not related to...

I tried out the example and by using the following rules it works as expected: ```css .carta-highlight code { padding: 0; box-shadow: none; } .carta-input textarea:focus { box-shadow: none; }...

Did you specify a font here? ```svelte /* Or in global stylesheet */ /* Set your monospace font (Required to have the editor working correctly!) */ :global(.carta-font-code) { font-family: '...',...

Ok, so I tried using `all: initial` but it's not working that well: setting it for everything(`.carta-editor *`) breaks certain styles, but not doing so does basically anything. Honestly I...

Probably adding `line-height` here does the trick: ```css :global(.carta-font-code) { font-family: '...', monospace; font-size: 1.1rem; line-height: 1.25rem; } ``` Let me know!

From the screenshot the caret color comes from the default theme. You just need to copy the theme and edit it!

To me its working fine: ![image](https://github.com/user-attachments/assets/16d4f557-4924-42e6-80a6-1a43eebdaa9c) ![image](https://github.com/user-attachments/assets/f5aaced7-744e-48e3-9f03-9e1991e5ce3d) Did you include a [stylesheet](https://beartocode.github.io/carta/editing-styles#markdown-stylesheets)?