āFailed to render Markdown: āversionā is a required argumentā
Iām new to Inkdrop and wanted to explore by importing from my store of mardown files.
Iā imported about a dozen markdown files with .md extensions (which Iāve been editing fine in other apps such as Typora and Notable). The files do have YAML headers. When I import into Inkdrop I see I get the above error message on a few of the imported files.
When I check Developer -> Toggle Developer Tools I see:
`C:\Users\jconn\AppDaā¦g\src\common.js:114 app:error Failed to render preview: +6m Error: āversionā is a required argument.
debug
@
C:\Users\jconn\AppDaā¦g\src\common.js:114
(anonymous)
@
browser-commons.js:1
`
Also, on two separate occasions after an import, rather than see this rendering error I instead had what seemed like a new Inkdrop window open but no notes displayed and the app seemingly not responding (but I believe allowing me to close).
Info
Platform: Windows
Platform version: 10
App Version: (5.0.0)
Reproduce
I chose: _File, _Import from Markdown Files,
and then chose all the markdown files from a windows folder.
There was nothing special about the files that fail to render. Plain text markdown files with a YAML header. Here is the first part of an example file which is triggering the error:
Thank you for the report.
Thatās strange. I tried to reproduce it with the provided Markdown with a YAML frontmatter, but it worked as expected.
If you found any other hint to reproduce it, please let me know!
The --- YAML separator is at the top of the document. Here is a complete markdown file which generates the error for me (this particular header was generated by Notable):
Sorry, I think the forum reformatted the markdown I pasted in so that you might not see the separators clearly. Let me try again:
---
title: read_BubbJLE13
tags: [DevII, enclosure, read_notes]
created: '2020-02-19T15:41:05.620Z'
modified: '2020-07-10T02:24:52.427Z'
---
Bubb, Ryan. 2013. āThe Evolution of Property Rights: State Law or Informal Norms?ā *The Journal of Law & Economics* 56 (3): 555ā94.
Where do property rights come from?
- Imposed from above by states?
- More organic evolutionary adaptations of norms and customs from below?
- If the latter, what are correlates of property rights regimes across regions?
Itās obviously not a YAML, so the markdown parser fails to parse it.
So, if you got the error, you should check your YAML syntax.
The problem is that the app doesnāt report any helpful information but only the non-sense message.
I will fix it in the next release.
I can confirm that 2 triple-dash lines separated by a code block creates the error, and removing both triple-dashes removes the error.
Attached is a screenshot of the error.