Skip to content

Broken markdown file #448

Closed
Closed

Description

@stefnotch

Description

I managed to create a .md file that MarkText cannot display at all:

- Regarding the "favourites", what is the desired behavior:

  - Normal results & favourites are displayed, however, the favourites are higher up (boost)

  - Only the favourites are 

- 
- 

- 

- 

- 


Steps to reproduce

  1. Start MarkText
  2. Switch to source code mode
  3. Copy-paste the text above
  4. Switch back to the default mode

Versions

  • Mark Text: v 0.12.25
  • OS: Windows 10

Activity

  1. enyaxu commented on Aug 2, 2018

    @enyaxu
    Contributor

    @stefnotch
    Could you upload screen capture? I can't reproduce this issues from my mac.
    kapture 2018-08-02 at 22 27 06

  2. stefnotch commented on Aug 2, 2018

    @stefnotch
    ContributorAuthor

    Sure:
    2018-08-02_18-45-26

    (Tested it on 2 different PCs, 100% reproduction rate. If you copy-paste the text into the source code mode thingy, it apparently doesn't always get reproduced?)

  3. fxha commented on Aug 2, 2018

    @fxha
    Contributor

    Thanks @stefnotch, this is definitely a bug:

    TypeError: Cannot read property 'key' of undefined
        at ContentState.importCursor (importMarkdown.js?4b04:390)
        at Muya.setMarkdown (index.js?64a7:507)
        at Muya.init (index.js?64a7:102)
        at new Muya (index.js?64a7:54)
        at VueComponent.eval (editor.vue?7b20:160)
        at Array.eval (vue.esm.js?a026:1837)
        at flushCallbacks (vue.esm.js?a026:1758)
        at <anonymous>
    

    Commit 486eb93

  4. added
    🐛 bug
    on Aug 2, 2018
  5. enyaxu commented on Aug 3, 2018

    @enyaxu
    Contributor

    @fxha @stefnotch
    I push a PR to fix this. Please review.

  6. added
    🐜 in progress
    🐝 resolved/fixed but not released
    and removed
    🐜 in progress
    on Aug 11, 2018
  7. Joshuasony commented on Oct 9, 2018

    @Joshuasony

    I've got a similar issue, not sure if it has to do with source code mode.
    But Marktext won't display anything in certain .md files - doesn't matter if I open them by doubleclicking the file or open it via menu of Marktext.

    It works for some documents, but not for others. Couldn't find out why.

    MacOS 10.14
    Marktext 0.12.25

  8. Jocs commented on Oct 9, 2018

    @Jocs
    Member

    @Joshuasony Can you send me a broken file? [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐝 resolved/fixed but not released🐛 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions