jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Markdown block: add footnotes support

Open jjchrisdiehl opened this issue 7 years ago • 52 comments

Issue

Markdown block does not render/hyperlink footnotes as it should

Steps to reproduce

Create a site on WordPress.com, or .org site with Jetpack (Markdown enabled in settings) Add markdown block Paste in footnote markdown e.g-

I have more [^1] to say up here.  
[^1]: To say down here.

Preview/Publish

Expected Result

I expected something along the lines of https://www.markdownguide.org/extended-syntax/#footnotes

Actual Result

Seems to not render the footnote page jump links

WP.com image

Jetpack site image

jjchrisdiehl avatar Jan 31 '19 02:01 jjchrisdiehl

Ref: 1762746-zen

Robertght avatar Feb 01 '19 06:02 Robertght

Related: #325 for the Classic Markdown feature.

jeherve avatar Apr 03 '19 14:04 jeherve

Another request 2003538-zen

liviopv avatar May 05 '19 11:05 liviopv

Also, a non-markdown solution for Footnotes is being discussed in core Gutenberg https://github.com/WordPress/gutenberg/pull/15267

liviopv avatar May 05 '19 11:05 liviopv

Any development here? Any workaround to still have footnotes working with Markdown?

vincenzo avatar Jun 29 '19 11:06 vincenzo

Should've complied with https://en.support.wordpress.com/markdown-quick-reference/ -- it's the link shown as "support reference" for the markdown block.

vincenzo avatar Jun 30 '19 05:06 vincenzo

Any development here? Any workaround to still have footnotes working with Markdown?

We have made no progress on this so far, but will update this issue when we do.

Should've complied with en.support.wordpress.com/markdown-quick-reference -- it's the link shown as "support reference" for the markdown block.

The Markdown block currently relies on a different flavor of Markdown, thus causing those inconsistencies. See #11881 to find out more.

jeherve avatar Jul 03 '19 11:07 jeherve

Another one came up here today about footnotes - 2285644-zen

rickmgithub avatar Aug 19 '19 19:08 rickmgithub

Requested via Twitter

KokkieH avatar Sep 08 '19 06:09 KokkieH

I wonder if this is something related to this issue but the footnotes appear to have completely stopped appearing for non Blocks Editor, Jetpack-powered blogs.

Jetpack still seems to be parsing them but not publishing them—the footnote text was just removed from the published post.

adityabhaskar avatar Sep 18 '19 05:09 adityabhaskar

@adityabhaskar Could you paste an example of a footnote you've tried to add to a post using the Classic editor, and where that footnote was not displayed on the site?

Thank you.

jeherve avatar Sep 19 '19 09:09 jeherve

 - Love of a good dog[^1].

....

[^1]: Read as 'Love of a dog', _because they are all good dogs, Brant_.

It was on this post.

The footnote text was completely removed from the published post. For the moment, I have removed the square brackets marking the footnote to make it appear.


I just tested it again by adding the brackets to the footnote marker. The footnote was removed again.

I am using the classic editor in WordPress.com app for Mac

adityabhaskar avatar Sep 19 '19 09:09 adityabhaskar

It seems to work on my end:

screenshot 2019-09-20 at 16 00 00 screenshot 2019-09-20 at 15 59 52

Could you give it another try, but while composing your post from the text editor instead of the visual editor?

jeherve avatar Sep 20 '19 14:09 jeherve

Yes, it is working now.

I tested it by composing both from the text editor and the visual editor, and it worked. I even updated the reference post, and the footnote shows.

Thanks @jeherve !

adityabhaskar avatar Sep 20 '19 14:09 adityabhaskar

Another case here - #2400283-zen.

There is no option to edit as Text in Classic Block. Screen Shot 2019-10-05 at 15 02 02

kosiew avatar Oct 05 '19 07:10 kosiew

There is no option to edit as Text in Classic Block.

You can pick the "Code Editor" option in the block editor's sidebar:

image

jeherve avatar Oct 07 '19 08:10 jeherve

Just experienced this issue and wanted to add some thoughts. It seems to me that Footnotes shouldn't require a markdown block, and previously worked by just enabling markdown on a site in the Writing Settings

When adding a footnote, people generally won't be including a whole paragraph or sentence as markdown text to show that way. It's not how it works in the classic editor.

msilbers avatar Oct 30 '19 18:10 msilbers

Received another report of this issue in #16931073-hc

  • Footnotes not appearing within Markdown block
  • option enabled via WP Admin > Settings > Writing

smithkyle45 avatar Nov 27 '19 17:11 smithkyle45

Another instance of this on a Premium Site, markdown enabled. Tried markdown block, paragraph block, code block but couldn't get it to show the footnotes:

17152867-hc Followup - 2542691-zen

gwensmithx avatar Dec 06 '19 21:12 gwensmithx

Another one reported, user was unable to add footnotes. Markdown is enabled, tried paragraph block, markdown block, classic block but it did not work.

Chat: 17432713-hc Follow-up: 2575189-zen

sourourn avatar Dec 20 '19 13:12 sourourn