Marked Share hides the H1 and first paragraph when that paragraph starts with "Word:"

Viewed 39

share.markedapp.com, published from Marked 3.2.3 (1217)

When I publish a document whose first paragraph (right under the H1) starts with something like Note: or First span:, the heading and that paragraph disappear from the rendered page. The Raw download still has them, so they're being lost at render time.

Minimal repro — publish this:

# Leading paragraph test

Note: this paragraph begins with a word and a colon.

Second paragraph, with no colon.

Expected: heading and both paragraphs render. Actual: only the second paragraph shows.

A Word: paragraph later in the document renders normally, and a document whose first paragraph doesn't start with a colon pattern retains its heading. Could it be that the renderer is interpreting a leading key-colon paragraph as a MultiMarkdown metadata block and consuming the H1 as the document title? (Reading style doesn't matter — same result under Swiss and Editorial.)

Example: https://markedb.in/bc2v8 starts with First span: under the H1, and both lose the heading and that paragraph. I also published a dedicated test file with Note: as the opening word on 6 September and got the same result.

Minor related thing: the og:description meta tag strips out the backticked text entirely, so it reads "First span: . Second span: ." instead of showing the code span content.

2 Answers

Confirmed fixed — reloaded https://markedb.in/bc2v8 without republishing and both the H1 and the Note: paragraph are back. The og:description fix is in too. Thank you.

Thanks for the clear repro — you nailed the cause.

Share was treating a leading Word: paragraph (like Note: / First span:) as MultiMarkdown metadata. On Apex 1.0.17 that also swallowed the H1 above it, so the rendered page lost both while Raw stayed intact.

That’s fixed in the current Apex (1.0.20), and Share now:

  • stops treating ordinary Word: prose as metadata
  • re-renders affected existing shares on read so they heal without republishing
  • keeps inline code text in og:description (it was stripping the whole `span`)

I’ll deploy shortly; after that, a refresh of https://markedb.in/bc2v8 should show the heading and first paragraph again. Let me know if you still have issues.