Skip to content

Style parsing doesn't work when the entire line is styled #72

@TheSolarPrincess

Description

@TheSolarPrincess

Describe the bug
If the entire line is italic/bold/underscore, the style isn't parsed correctly

To Reproduce
Steps to reproduce the behavior:

This is the .org file:

This is /styled text/ in the middle of the line

/This is the entire line styled/

This is what it parses into

;; => [:S
;;     [:content-line
;;      [:text
;;       [:text-normal "This is "]
;;       [:text-sty-italic "styled text"]
;;       [:text-normal " in the middle of the line"]]]
;;     [:empty-line]
;;     [:content-line
;;      [:text
;;       [:text-normal "/This is the entire line styled"]
;;       [:text-normal "/"]]]]

Expected behavior
The second line is put entirely within the :text-sty-italic block

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions