typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

More Syntax Preference switches

Open Crissov opened this issue 7 years ago • 4 comments

Currently Typora lets its user decide whether they want

  • Strict Mode (GFM/CM compatibility)
  • Heading Style:
    • ATX #
    • ATX with suffix # … #
    • Setext ===
    • variable-width Setext =====
  • Unordered List:
    • -
    • +
    • *
    • possibly depending on nesting level
  • Ordered List:
    • 1. … 2. … 3. …
    • 1. … 1. … 1. …

Gruber Markdown, Commonmark, GFM and other extensions (which I will ignore) offer some additional alternative syntax choices that you might want to expose to the user:

  • [ ] Ordered List:
    • 1) … 2) … 3) …
    • 1) … 1) … 1) …
    • a) … b) … c) … #755 not in MD, CM, GFM
  • [ ] List default:
    • strict
    • loose (every list item surrounded by blank lines)
    • loose parent (nested list items are strict, their parents are loose)
  • [ ] Thematic Break:
    • ----
    • ****
    • ____
  • [ ] Emphasis:
    • *em* **strong**
    • _em_ __strong__
    • *em* __strong__
    • _em_ **strong**
  • [ ] Code Block:
    • ␠␠␠␠ (indented)
    • ~~~ (fenced)
    • ``` (fenced)
  • [ ] Plain Link:
  • [ ] Link Title:
    • [text](target "title") and [label]: target "title"
    • [text](target 'title') and [label]: target 'title'
    • [text](target (title)) and [label]: target (title) least compatible
  • [ ] Link Target:
    • [text](target) and [label]: target
    • [text](<target>) and [label]: <target>
  • [ ] Space in URL:
    • <long target> CM, MD?
    • long%20target MD, CM
    • long&#x20;target HTML
    • long&#32;target HTML
    • long\ target
    • long target
  • [ ] Forced Line Break: interacts with Whitespace / Line Break
    • ␠␠␤ (2 spaces) classic MD
    • \␤ (backslash) CM
    • ~~ (just new line) not CM but GFM~~
  • [ ] Position of Reference Link Definition: #985
    • directly after block of first use
    • directly after block of last use
    • before heading following first use
    • before heading following last use
    • end of document

There should also be a single control for the (minimum, maximum or fixed) number of repeated characters in Setext heading underlines (1+, = or -), thematic breaks (3+, *, - or _) and code fences (3+, ~ or `).

Crissov avatar Apr 19 '18 09:04 Crissov

@Crissov Can you covert the list above to a task list? That way it's easy to see which items have been addressed and which not. GitHub has special support for them.

You may or may not want to merge the two halves of the list, as you can use checked boxes to identify those items "currently supported".

vassudanagunta avatar Oct 29 '21 16:10 vassudanagunta

Also, you may want to generalize the "Forced Line Break" item. See #4759.

vassudanagunta avatar Oct 29 '21 17:10 vassudanagunta

Has there been any progress on any of these options? I'm personally looking to specify _em_, **strong** as my syntax, since I've been using that across other editors, and I like consistency across my files.

ben-zen avatar Sep 04 '23 03:09 ben-zen

It kills me that there are multiple ways to specify italics but no way to specify underline without resorting to HTML tags. It would be great if there was an option to render _underline_ as underline instead of emphasis.

kbd avatar Sep 28 '24 22:09 kbd