Comments (4)
I was thinking when I initially wrote dillinger to provide a way to add one's own "theme" or CSS styling to the rendered markup. Right now, it is falling back to Twitter's Bootstrap styles.
It would require some sort of additional UI (modal maybe) that allows a user to add their own styles for h1, h2, code, pre, li, etc. This would be saved in the "profile" (localStorage) so it would be there everytime. Thoughts?
In regards to the markdown editing, yeah I totally agree. It is one of the things I wish Ace provided and with that being said, it is the key dependency for Dillinger.
Ace does add classes to span
tags that hold the text in the editor and those spans declare things like ace_heading
, but ace_heading
is the equals sign (for an h1
for example), so some JavaScript magic would be necessary to find the span
above the place where ace_heading
lives (and then apply a style/class based on it). Make sense?
Doesn't seem impossible and futzing around with Web Inspector I was able to do what Mou is doing stylewise. It would be a great addition to Dillinger and Ace overall.
from dillinger.
I was playing around with something similar to dillinger. I looked into both ace and codemirror to try and get highlighting similar to mou.app.
The issue is that both ace and codemirror do their syntax highlighting line by line, which is why they both only highlight the '======' line and not the header text above.
Additionally, if you change the font size for a specific style, the cursor will show up in the wrong spot, because the fixed-width assumptions will be off.
from dillinger.
@satchmorun good point
from dillinger.
This would be great to see cross-posted with https://github.com/ajaxorg/ace so you can get in dialog with Ace, and potentially improve markdown support for a wider range of Ace users, instead of just Dillinger.
If you post a bug to Ace referencing this one (or vice-versa), github automatically does some really nice inclusion and tracking.
from dillinger.
Related Issues (20)
- Cannot import the existing markdown file from google drive. HOT 1
- 71722539README.md
- Vim Keybinds: Cursor Doesn't Stay on Screen
- Open a URL? HOT 2
- dillinger.io not updated to latest HOT 1
- Website down ? HOT 2
- Image not present when exported to PDF HOT 3
- Error on npm i HOT 2
- Graceful way to upgrade dependencies HOT 2
- Doesn't scroll with up/down arrow keys
- Documentation/Installation Issues: Node Version HOT 3
- [bug] Zen Mode - autosave doesn't work
- Build status? Travis CI link goes 404
- Is this repo still maintained? README vastly out of date (not even node 16 supported) HOT 4
- Dillinger fails to understand expression inside LaTeX environment
- File size issue
- Use Chrome Extension to manipulate the markdown HOT 1
- Using unicode format codepoint Word Joiner is buggy
- OneDrive Import -> "This API is no longer supported"
- Dropbox plugin secretkey error
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 dillinger.