You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I greatly appreciate MarkEdit's adherence to this spec.
100% GitHub Flavored Markdown. It's exactly 100%, not 80% or 120%. It means that we follow the spec closely, and we don't invent anything else.
Notwithstanding, much of today's knowledge work may benefit from the highlighting of certain phrases and passages. Rather than an arbitrary markdown "invention" (e.g. ^^ in Roam, == in many other editors), perhaps there's some other way to invoke the markText method within CodeMirror so that certain text might be styled as a highlight. Thank you for the consideration.
Thanks for the feedback. Honestly, I am not a big fan of adding features like this. However, this brings up an open question, should we have a way to tweak CodeMirror plugins, this is something I am interested in but don't have bandwidth to explore right now.
I understand your position. I don't know much about CodeMirror. I looked into it years ago but ended up building a project on Quill js. Let me know more about your thinking on tweaking CodeMirror plugins within the MarkEdit framework. I might be open to digging deeper.
The new release is really nice! One question on the highlighting: might it be possible to support typing == for selected text? Right now that simply replaces the selection. It would be great if typing = on selection worked the same as *, _ , [, etc.
Activity
cyanzhong commentedon Aug 28, 2024
Thanks for the feedback. Honestly, I am not a big fan of adding features like this. However, this brings up an open question, should we have a way to tweak CodeMirror plugins, this is something I am interested in but don't have bandwidth to explore right now.
apg-dev commentedon Aug 28, 2024
I understand your position. I don't know much about CodeMirror. I looked into it years ago but ended up building a project on Quill js. Let me know more about your thinking on tweaking CodeMirror plugins within the MarkEdit framework. I might be open to digging deeper.
cyanzhong commentedon Sep 9, 2024
While I am not sure if these are going to resolve the pain point you shared, I am making an extension system for MarkEdit with these changes:
markedit-apirepo to provide api declarations.markedit-apiinterfaces.mte-kernel.I've tried a few scenarios and it works great, tweaking the markdown syntax might be harder though.
See also: #627.
cyanzhong commentedon Sep 11, 2024
With the new markedit-api system, we can easily decorate text like this:
I am using a fragile approach with regex though:
I don't know what's the best practice to precisely identify
==text==here, but I think the new extension system should unblock you.cyanzhong commentedon Sep 14, 2024
OK, I've added some new API and figured out a way to accurately identify the desired pattern, by extending the Markdown parser:
Full example is uploaded here: https://github.com/MarkEdit-app/MarkEdit-highlight.
apg-dev commentedon Sep 16, 2024
Awesome work! I haven't had a chance to dig into the code yet, but this looks super-impressive.
apg-dev commentedon Sep 27, 2024
The new release is really nice! One question on the highlighting: might it be possible to support typing
==for selected text? Right now that simply replaces the selection. It would be great if typing=on selection worked the same as*,_,[, etc.cyanzhong commentedon Sep 28, 2024
What we need to do is basically copying some code from
MarkEdit/CoreEditor/src/modules/input/index.ts
Line 34 in 8e5c1cd
Example:
Please check the updated version: https://github.com/MarkEdit-app/MarkEdit-highlight.
apg-dev commentedon Sep 28, 2024
Works perfectly!! Thank you!