jbt / mdedit Goto Github PK
View Code? Open in Web Editor NEWNice syntax-highlighted markdown editor view component
License: MIT License
Nice syntax-highlighted markdown editor view component
License: MIT License
https://github.com/jbt/mdEdit/blob/master/src/Editor.js#L75
Currently if you do shift+Home it'll reverse the selection range so the anchor becomes the start rather than the end of the selection. So in addition to arrow keys there should probably be home, end, pgup, pgdn, ... maybe more, can't remember - anything that doesn't change the text basicaly.
1. `1.`
1. `1.1`
Data
1.
1.1
Data
1. `1.`
1. `1.1`
Data
1.
1.1
Data
Ok, seems github works well, but many markdown viewer display it as
1.
1. `1.1`
Data
On a file with a java code block over 8000 lines, typing one character takes up to 2 seconds to get it reflected on screen on my i7/16G RAM/ssd machine
The other thing is when I first load that big file, even after the Editor.prototype.changed
get triggered, it takes up to 4 seconds to display the full content in editor window. As a comparison the right side preview window driven by markdown display instantly after changed
event triggered
The markdown editor based on CodeMirror doesn't have the issue
Large markdown files like https://raw.githubusercontent.com/owncloud/news/master/README.md have very large input lag in firefox.
I want to use this widget to provide my users with a neat editor to use for their content. Unfortunately when I saw Prism being 133kb in size (prism-all.js), i gulped pretty hard. Because that is really big.
My environment uses WebPack, so I can utilize CommonJS and the like. What is the best way to only use selected languages?
A short documentation / sentence in the README about browser support (especially IE versions) would be great.
This information is interesting for contributors of this library and developers using mdEdit.
Allow Editor.paste support calling directly through API to paste a string content, e.g.
mdEditor.paste("uploading image ...");
Note the current implementation of Editor.prototype.paste
doesn't work because it only paste from clipboard.
There isn't a decent Markdown editor available for RTL languages (Persian, Arabic, Hebrew).
Given the web based nature of this editor adding RTL support should be pretty straight-forward.
Maybe a button or a keyboard shortcut can toggle between RTL/LTR?
Double-return after last item should clear the list.
Looks like I did a silly here:
mdEdit/src/SelectionManager.js
Lines 45 to 49 in 8a24767
Need to check whether I meant that to be an else
or just a second statement in the if
consequent
A few events and methods look like they're gonna be essential to implement nice chained scrolling in a side-by-side editor:
All but the first one are of course possible with standard DOM events. Being able to measure to a certain line or collection without thrashing layout could be somewhat trickier.
First, thanks for this neat tool, love it!
Now question: is there any API for me to move the cursor to somewhere e.g. the end of the document?
A few short entries in the wiki about the supported markdown elements would be great.
Possibly with examples.
It's a bit difficult to extract this information from the code because of the partially complex RegExs.
Would it be better to use Bower to import Prism?
Use Gulp to build mdEdit?
Still nobody is answer the issue submits :-(
I start to wondering if it is a wise decision to put my project on top of this one ...
Even I added line-numbers
into class
of <pre>
tag it doesn't work. Any idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.