Skip to content

Keep markdown and citation elements with their corresponding text upon line wrapping #21

@jaredsampson

Description

@jaredsampson

Hi. It would be nice if markdown elements (e.g. *, **, etc.) and citation opening and closing brackets would be kept with the text they enclose upon text wrapping, and not be orphaned on the line before or after when writing in Sublime Text.

Currently, I'm frequently seeing text that gets wrapped like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. **
Nunc id eros** a neque porttitor placerat ut vel neque. 

or this:

Pellentesque eu urna odio. In hac habitasse platea dictumst[
@Vestibulum2016].  Auctor justo erat consectetur a facilisis 
vehicula. Fusce erat eu massa [@Condimentum2016; @Pharetra2016
]. Vestibulum et tortor in enim fringilla feugiat.

I see this behavior with up-to-date Sublime Text 3, using freshly installed Academic Markdown.

Ideally, the entire emphasized phrase **Nunc id eros** (including the starting and ending double asterisks) would wrap to the second line, and the opening/closing brackets of the Pandoc-style citations would stick to the first/last citekeys in the list, like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
**Nunc id eros** a neque porttitor placerat ut vel neque. 

Pellentesque eu urna odio. In hac habitasse platea dictumst
[@Vestibulum2016].  Auctor justo erat consectetur a facilisis 
vehicula. Fusce erat eu massa [@Condimentum2016; @Pharetra2016]. 
Vestibulum et tortor in enim fringilla feugiat.

I'm not sure if this is an AcademicMarkdown issue, per se, or maybe more appropriate for MarkdownEditing, but this seemed like a good place to start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions