Skip to main content

[SUGGESTION] Design choices for blockquote formatting helpers

Comments

2 comments

  • Fletcher Penney

    AmberV

     

    Thanks for the thoughtful post.

     

    1.  As an aside, while digging into this I found a bug in MultiMarkdown parsing of an edge case of blockquotes, which is now fixed.  Thank you.

    2. Yes -- leaving the space between the `>` and the actual text when reapplying the "Convert to Blockquote" command is a bug (fixed now.) 

    3. "Convert to Blockquote" will now increment the quote level when reapplied, in a similar fashion to the ATX header command.  

    4. Selecting blank lines in addition to full lines will result in all lines having the blockquote marker applied.

    4. The "Convert" routines will otherwise still ignore blank lines, but *if* applied to an empty line (no spaces or other text), they will insert the default markup at the beginning of the line.

    5. I'll have to think more about your request to change the behavior when hitting enter/return on an otherwise empty blockquote line.  This would be different than the behavior under all other circumstances I can think of with regards to what happens when pressing return, which I am hesitant to do.

    0
  • AmberV

    You're quite welcome; glad to help!

    As for the return key behaviour, it is a tricky one, and probably why most dedicated editors and syntax plugins for either avoid it by not continuing at all, or take route one and continue forever until you manually backspace over.

    The second solution would be the best I've seen out there, as it handles most forms of usage efficiently. I can see why it isn't commonly employed though as it means a cleaning engine that escapes the boundaries of the current line, which could be risky code in edge cases. Then again, so are engines that auto-clean enumerated lists when you insert a bullet in the middle---so it isn't entirely unheard of.

    0

Please sign in to leave a comment.

Powered by Zendesk