md-Export / Markdown-Export

Bike Menü: /File/Save …/
bietet an

  • Bike
  • OPML
  • Plain Text

Es fehlt

  • Markdown

In Bike 2.0 Preview (268)

⌥⇧⌘S Save As...

or in the File menu with with ⌥ held down (File > Save As...)

File Format:

following the (known) instructions to me:
Save as md…saves it as ebook, is that normal?

Hum, that doesn’t seem right. When I create a new outline with default text, and then save using markdown I get this file Welcome to Bike.md… with the following markdown list content:

Welcome to Bike.zip (1.4 KB)

when i re-open Bike.md file in Bike is ok, but if I open it elsewhere…

That looks mostly as expected. Bike documents have a front matter section at the top, as do many markdown files.

It looks like the app you are opening it in is generating a preview for some, but not all of the markdown. What app are you using in that screenshot?

Marked2
What app do you suggest?

Ok, so it mostly looks correct to me for what Marked is trying to do (create a preview). The only issues I see are:

  1. Showing the formatter might be concerning you, but I think that’s correct. Frontmatter is part of the outline, should be seen.

  2. The fact that the other rows all preview, while - # Welcome to Bike! does not is a little weird. But I guess Marked just isn’t able to parse that list item? @ttscoff?

I guess @amelchi what do you find problematic about that screenshot? Except for #2 it’s mostly what I would expect and “correct” to my eyes.

Depends what you need/want. For most clarity on what exactly is happening I would recommend a syntax highlighting plain text editor for viewing markdown files.

I’m unclear about the question. The syntax - # Welcome to Bike is not a valid h1 headline and would not be rendered as such. Front matter in the form of anything but YAML or MMD metadata will be rendered in the preview. Also, Marked 2 had no special handling for Bike, that’s all in Marked 3. But if this is just Markdown, then Marked 2 should be able to preview it.

another example: a file of mine
Libro Sefer Bike .md (668 Bytes)
it looks good in Bike, but less clear in CotEditor…

1 Like

I was expecting it might be rendered like:

<ul>
<li>
<h1>hello</h1>
</li>
</ul>

That’s what I see in common mark, but maybe that’s not what markdown standard does.

It will render with CommonMark (which Marked 3 provides as an option) but it’s not standard Markdown. Most variants require that the line start with the ATX header (or no spaces in Setext syntax).

1 Like

I think behaving as designed. In this case the markdown is “busy” because it’s also encoding created/modified dates. I think this is because you crated this document with an older version of Bike 2.0 where the default was to always persist created and modified dates. I think if you create a new markdown document you’ll see those dates are not stored. (This default can be changed in Settings > Document > New Document > Save created and modified dates)