Comments (6)
May I suggest CodeMirror which support Markdown highlighting.
We use it in IPython, and it has an autogrow capability.
from markx.
I'll have a look, thanks!
from markx.
I changed the editor from PageDown to CodeMirror, see ab20bc5.
Waiting for feeback if this should be merged to the master branch.
You can also add arbitrary pre and post conversion hooks by writing something like in the js console:
addPreCoversionHook(converter, function(text) { return text.replace("GitHub", "[GitHub](http://github.com)") })
which will convert appearances of GitHub
in the markdown to markdown links to GitHub site.
/cc @Carreau @karthikram @lsaravia
from markx.
I like the space between lines that has PageDown, but there are other features of CodeMirror that are interesting, line numbers and highlighting. CodeMirror has some problem with math that makes the text italicized between $. And the math is not rendered in the preview pane.
from markx.
- The space between lines can be modified in
static/css/codemirror.css
by adding aline-height: 200%;
or something similar (you can specify percent orem
units, I think) in the.CodeMirror-lines
class. Let me know what you think is a good default and I'll set it (or you could create a pull-request). - The CodeMirror highlighting is not perfect, I'm not sure why it highlights some of the text, but I guess that could be fixed by either digging into it or by using a less intrusive theme (you can see other themes here available here and if there is one you think will be better let me know, I chose the
elegant
theme because I thought it was neat). - The math rendering was a bug - i fixed it in cca50e0.
from markx.
Changed line spacing to 150% and merged codemirror
branch to master
.
Closing this issue.
from markx.
Related Issues (20)
- no safety window on clicking markx icon
- Pandoc flavored Markdown superscript and subscript are not displayed in the html preview HOT 16
- github favoured markdown? HOT 3
- no mathjax result in the exported files HOT 7
- use marked instead of pagedown HOT 1
- \\ for linebreak in LaTeX math environment (not \\\\) HOT 1
- \\(..\\) and \\[..\\] not supported in LaTeX export? HOT 1
- pdf to xml HOT 1
- Syntax Highlight Only First Code Block HOT 3
- Just checking whether this is still an active project? HOT 1
- Exporting to odt HOT 1
- img tag is not supported by PageDown
- KaTeX support HOT 1
- Continous Integration
- Can't access organization repositories that I own HOT 3
- Download as PDF: incorrect rendering HOT 11
- Latex newline incorrect rendering HOT 10
- use node.js for development? HOT 1
- commit file and push to github failure HOT 1
- Add pandoc settings. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markx.