SimpleMDE definitely looks better! It exposes "autofocus" option, so we don't 
need to change editor's code as I did in lepture's editor. I think it will be 
not very hard to switch, I'll give it a try.

I'm not sure about transparent preview and borders, we'll need to hide central 
part of the editor for this to work, but we must leave toolbar, because it 
contains button for exiting the preview, so I'm not sure it will look good, but 
I'll try it.

Toolbar enhancement should be pretty straightforward, you just add js object 
describing button and function, which should be called on click, to the toolbar 
list and that's all. But, if you need to modify text you need to use 
[helpers](https://github.com/NextStepWebs/simplemde-markdown-editor/blob/master/source%20files/simplemde.js#L315-L373)
 to do it properly and editor isn't exposing them for external use :(  That's 
one of the things we can contribute, I think.

I'm not sure about highlight support, it's provided by CodeMirror and it is 
pretty extensible, so I think we can teach it our extended markdown syntax, but 
I did not look into it closely.


Yeah, js test suite would be good. I didn't have experience with those, do you 
have something in mind? We can discuss it on allura's mailing list, I think.



---

** [tickets:#7897] Live syntax highlighting for markdown editing**

**Status:** in-progress
**Milestone:** unreleased
**Labels:** 42cc sf-8 ux sf-current 
**Created:** Mon Jun 15, 2015 02:30 PM UTC by Dave Brondsema
**Last Updated:** Thu Jul 09, 2015 10:26 PM UTC
**Owner:** Igor Bondarenko

An editor like https://github.com/lepture/editor which shows some Markdown 
style rendering as you are editing (not full WYSIWYG though) could be very 
helpful.  Demo at http://lab.lepture.com/editor/

We should figure out how to change the help & preview buttons to use our help & 
preview URLs.  However I don't think we should try to customize the syntax 
highlighting for our customizations (e.g. `~~~~`, artifact links, etc) yet.  
Can be a followup ticket.

I like this because it doesn't attempt to do a full WYSIWYG exact render, so we 
don't have to worry about some of our customizations.  Yet it does do enough 
formatting that people will notice if they unintentionally cause formatting 
with a `_` or a `*`.  And it even helps with the sneaky gotcha of a bullet list 
without a preceding blank line (it doesn't work, it is rendered as italics) 

(This idea came from discussion on [#6822])


---

Sent from forge-allura.apache.org because [email protected] is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to