Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify content format more strictly #6

Open
easrng opened this issue Mar 12, 2024 · 1 comment
Open

Specify content format more strictly #6

easrng opened this issue Mar 12, 2024 · 1 comment

Comments

@easrng
Copy link

easrng commented Mar 12, 2024

There are many incompatible markdown dialects. Consider switching to HTML or specifying a specific dialect, and define what to do when unsupported content is encountered.

@nichtich
Copy link

If interoperability is the main goal than CommonMark would be the best choice. As JSON Canvas is created by Obsidian, I guess the Markdown dialect is Obsidian Flavored Markdown . In theory this requires applications to recreate parts of Obsidian. Furthermore Obsidian Markdown seems to be extensible via plugins so perfectly processing arbitrary Canvas files from Obsidian seems to be impossible. In practice I bet each application will use its own preferred Markdown variant so there will be a mess as soon as you use non-trivial Markdown elements. Possible solutions:

  1. Agree on one Markdown dialect (this won't happen)
  2. Pray and guess when processing markdown
  3. Add a field to denote the markdown variant(s) used in a JSON Canvas file (e.g CommonMark or Obsidian + Citation-plugin) so the content can be processed e.g. with remark

I think solution 3 is most feasible to get 99% interoperability but only 1 would give 100% and in the end we will have 2 anyway as Markdown is not interoperable and people don't strictly follow standards (disclaimer: I'm a big fan of both Markdown, standards, and interoperability).

P.S: The JSON Canvas homepage seems to use it's own Markdown subset as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@nichtich @easrng and others