robindijkhof / overleaf-textarea

This plugin displays your tex source in a textarea so plugins like grammarly can check it.
GNU General Public License v3.0
514 stars 31 forks source link

add more common patterns #42

Closed pascalfiv closed 3 years ago

pascalfiv commented 3 years ago

add more common patterns

pascalfiv commented 3 years ago

@robindijkhof hei could you maybe accept the PR? would be nice for other users I guess

robindijkhof commented 3 years ago

I need to test it. I hope I got some time saturday.

robindijkhof commented 3 years ago

@Synoon I don't think i can merge this. My problem is with the todo keyword. I think it is possible to have a multi line/paragraph todo. For example:

1. Some text. \todo{ this is a long todo line that not just only takes multiple 
   multiple lines but also has new lines.
2. This is just after the newline.}

This example would be replace by

1. Some text. 

Problem is, the number of lines in the new text and the oldtext are not equal. This is a requirement, which I cannot do anything about. The same may apply to the mbox. I am not sure though, I do not know mbox.

I will add the others though.

robindijkhof commented 3 years ago

https://github.com/robindijkhof/overleaf-textarea/issues/22 might provide a soltion for the problem stated above