Skip to content

New import feature keeps failing with Markdown but HTML works #91

Closed

Description

@ispjstfu

Can't really figure out why but here is what's happening in the console. I tested this with both Markdown files downloaded from Github (initially made with Gitbook) and all of those failed, and also by exporting a page as both Markdown and HTML from Notion where the HTML gets imported but the same page as Markdown fails.

SCR-20240720-ruex

Activity

  1. Philipinho commented on Jul 20, 2024

    @Philipinho
    Member

    Is there any error on the server console?

  2. ispjstfu commented on Jul 20, 2024

    @ispjstfu
    Author

    Oh, right. Yes. Here.

    SCR-20240720-sfsq
  3. Philipinho commented on Jul 20, 2024

    @Philipinho
    Member

    Can you email me a non-sensitive faulty Markdown?
    I can't seem to reproduce with Markdown exports from these platforms.
    (Email in Github profile). Thank you.

  4. GSKang94 commented on Jul 21, 2024

    @GSKang94

    Hi I got same error from this small md file
    Test.md

    # Test
    
    ### Lorem ipsum
  5. ispjstfu commented on Jul 21, 2024

    @ispjstfu
    Author
  6. Philipinho commented on Jul 21, 2024

    @Philipinho
    Member

    @ispjstfu Can you email to phil[at]docmost.com instead?
    Your comment has no attachments.

  7. ispjstfu commented on Jul 21, 2024

    @ispjstfu
    Author

    Alright. I replied to the comment via email so I thought maybe you got them there but I'll send a proper email now instesd.

  8. Philipinho commented on Jul 22, 2024

    @Philipinho
    Member

    I just released v0.2.8. I would appreciate your feedback if this issue still occurs.

  9. stanrc85 commented on Jul 22, 2024

    @stanrc85

    I'm still having the same issue on my updated install.

  10. Philipinho commented on Jul 22, 2024

    @Philipinho
    Member

    Please post the server logs.

  11. stanrc85 commented on Jul 22, 2024

    @stanrc85

    Here's the log from a few attempts
    image

  12. warfair1337 commented on Jul 22, 2024

    @warfair1337

    Updated to 0.2.8 and I'm still having the same issue import markdown-files.
    Tried multiple browsers, Safari, Firefox and Brave.
    Also tried exporting a page as markdown from Docmost and re-import it, which also failed.

    [Nest] 41  - 07/22/2024, 6:54:31 PM     LOG [NestFactory] Starting Nest application...
    [Nest] 41  - 07/22/2024, 6:54:31 PM     LOG [DatabaseModule] Establishing database connection
    [Nest] 41  - 07/22/2024, 6:54:31 PM     LOG [DatabaseModule] Database connection successful
    [Nest] 41  - 07/22/2024, 6:54:31 PM     LOG [DatabaseMigrationService] No pending database migrations
    [Nest] 41  - 07/22/2024, 6:54:31 PM     LOG [NestApplication] Nest application successfully started
    [Nest] 41  - 07/22/2024, 6:54:45 PM   ERROR [ImportService] Failed to create ProseMirror state
    
  13. Philipinho commented on Jul 22, 2024

    @Philipinho
    Member

    It could be possible your device does not support “text/markdown” mime type.

    What OS version are you running ?

  14. stanrc85 commented on Jul 22, 2024

    @stanrc85

    I'm on Win11, Chrome browser

  15. Philipinho commented on Jul 22, 2024

    @Philipinho
    Member

    Can you check the mime type of the file as displayed on your windows file system?

  16. warfair1337 commented on Jul 22, 2024

    @warfair1337

    Experiencing this on both MacOS 14.5 and Windows 11.
    Tested on another machine running Pop OS 22.04 and here the import worked perfectly.

  17. stanrc85 commented on Jul 22, 2024

    @stanrc85

    OS reports mime type is text/plain

  18. Philipinho commented on Jul 22, 2024

    @Philipinho
    Member

    Perfect. That’s the issue.
    Your OS changes markdown mime type to text/plain instead of text/markdown.
    I should make it more lenient in the next release.

  19. warfair1337 commented on Jul 22, 2024

    @warfair1337

    Pop OS and MacOS reports the same result, plain text.
    Although, import from Pop OS works, but not MacOS.

    file -i test.md
    test.md: text/plain; charset=us-ascii
    
  20. Philipinho commented on Jul 22, 2024

    @Philipinho
    Member

    Please upgrade to v0.2.9 which aims to address this issue.
    I look forward to your feedback.
    Thank you.

  21. stanrc85 commented on Jul 22, 2024

    @stanrc85

    Success, thank you!

  22. warfair1337 commented on Jul 22, 2024

    @warfair1337

    Works perfectly now, thanks.

  23. ados8 commented on Jul 25, 2024

    @ados8

    I found the importing didn't work until I fixed the docker permissions.
    Seems markdown needs access to write to the data folder and once that was address I could import markdown files.

  24. matbgn commented on Jul 26, 2024

    @matbgn

    The import is much better in v0.2.9 than it was originally in 0.2.7, many thanks indeed 🎊

    Still, I have a question on callouts, can you imagine any parser on import to handle the three main callouts types from Outilne that are really close to Docmost's?

    Or maybe at least import all of them as info?

    :::warning
    :::info
    :::tip

    image

    BTW importing its own exported MD doesn't work in Docmost for callout ATTW

  25. Philipinho commented on Jul 30, 2024

    @Philipinho
    Member

    @matbgn Markdown callout import will be supported soon.

  26. Philipinho commented on Sep 17, 2024

    @Philipinho
    Member

    @matbgn markdown callout imports (with types e.g. info, warning) have been added and will be available in the next release.

  27. added a commit that references this issue on Dec 24, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions