allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema" <d...@brondsema.net>
Subject [allura:tickets] #7955 Add more formatting support to markdown editor
Date Fri, 28 Aug 2015 21:43:18 GMT
Author has some in-progress work to put section headers buttons in the toolbar, nice :)

State types are mostly set starting here https://github.com/codemirror/CodeMirror/blob/master/mode/markdown/markdown.js#L54
 "comment" actually means "code"

\``` blocks can be controlled with option `fencedCodeBlocks` in markdown.js but we don't have
a way to pass that in right now.  We'd need to change `mode` in simplemde.js from a simple
string to `{name: "gfm", fencedCodeBlocks: false}`  And gfm.js will pass it through to markdown.js
config.  [General config docs](http://codemirror.net/doc/manual.html#option_mode))  Or to
keep it but change from \``` to `~~~~` would require forking markdown.js and changing \```
in just a few places, might be actually not bad **if** we decide to do a custom build of simplemde
and codemirror.

I am working on a button to support just single \` inline formatting.  I think it should be
possible.


---

** [tickets:#7955] Add more formatting support to markdown editor**

**Status:** open
**Milestone:** unreleased
**Labels:** ux sf-current sf-4 
**Created:** Mon Aug 10, 2015 02:39 PM UTC by Dave Brondsema
**Last Updated:** Fri Aug 28, 2015 08:29 PM UTC
**Owner:** Igor Bondarenko


It'd be nice to add more toolbar buttons to support inserting formatting like:

* `~~~~` code blocks
* strikethrough
* backticks
* tables
* headers

Tables & headers might need a drop-down to support choosing which one, so not sure if
that is realistic.

Syntax highlighting of those elements (especially our code blocks) would be nice too, but
perhaps a lot of work?

See if we can include tooltip text on the new buttons too.  I note that our custom preview
and help buttons don't have tooltips.


---

Sent from forge-allura.apache.org because dev@allura.apache.org 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.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message