You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New import feature keeps failing with Markdown but HTML works #91
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.
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.
Hi,
Sure, here you go. This one is exported directly from Notion.

Here is one from Gitbook that looks a bit more “strange” when opened in a text editor:

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.
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.
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.
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
BTW importing its own exported MD doesn't work in Docmost for callout ATTW
Activity
Philipinho commentedon Jul 20, 2024
Is there any error on the server console?
ispjstfu commentedon Jul 20, 2024
Oh, right. Yes. Here.
Philipinho commentedon Jul 20, 2024
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.
GSKang94 commentedon Jul 21, 2024
Hi I got same error from this small md file
Test.mdispjstfu commentedon Jul 21, 2024
Philipinho commentedon Jul 21, 2024
@ispjstfu Can you email to phil[at]docmost.com instead?
Your comment has no attachments.
ispjstfu commentedon Jul 21, 2024
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.
Philipinho commentedon Jul 22, 2024
I just released v0.2.8. I would appreciate your feedback if this issue still occurs.
stanrc85 commentedon Jul 22, 2024
I'm still having the same issue on my updated install.
Philipinho commentedon Jul 22, 2024
Please post the server logs.
stanrc85 commentedon Jul 22, 2024
Here's the log from a few attempts

warfair1337 commentedon Jul 22, 2024
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.
Philipinho commentedon Jul 22, 2024
It could be possible your device does not support “text/markdown” mime type.
What OS version are you running ?
stanrc85 commentedon Jul 22, 2024
I'm on Win11, Chrome browser
Philipinho commentedon Jul 22, 2024
Can you check the mime type of the file as displayed on your windows file system?
warfair1337 commentedon Jul 22, 2024
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.
stanrc85 commentedon Jul 22, 2024
OS reports mime type is text/plain
Philipinho commentedon Jul 22, 2024
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.
warfair1337 commentedon Jul 22, 2024
Pop OS and MacOS reports the same result, plain text.
Although, import from Pop OS works, but not MacOS.
Philipinho commentedon Jul 22, 2024
Please upgrade to v0.2.9 which aims to address this issue.
I look forward to your feedback.
Thank you.
stanrc85 commentedon Jul 22, 2024
Success, thank you!
warfair1337 commentedon Jul 22, 2024
Works perfectly now, thanks.
ados8 commentedon Jul 25, 2024
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.
matbgn commentedon Jul 26, 2024
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
BTW importing its own exported MD doesn't work in Docmost for callout ATTW
Philipinho commentedon Jul 30, 2024
@matbgn Markdown callout import will be supported soon.
Philipinho commentedon Sep 17, 2024
@matbgn markdown callout imports (with types e.g. info, warning) have been added and will be available in the next release.
Merge pull request docmost#91 from Vito0912/feat/oidcScope
test(mcp): coupling guard between enforceBasicLoginGate and login (do…