MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.45k stars 1.09k forks source link

New feature: Inline links - simpler syntax support #65

Open diethardsteiner opened 10 years ago

diethardsteiner commented 10 years ago

I think the way inline links are currently implemented is way to difficult to write. I don't really want to use HTML for this purpose if there is another way. Maybe you can offer support for existing Markdown extensions that cover that functionality. I am mainly familiar with MultiMarkdown and if you define in example a heading there like this:

# My heading

You can just link to it using this:

[My heading]()

I think that's way easier.

uranusjr commented 10 years ago

I would advocate something similar, but this will need additional features from Hoedown. I think they already have something going on (hoedown/hoedown#64), but nothing concrete yet.

In any case, the method you mentioned feels a bit too subtile to my liking. Something like Automatic Cross-References might be better—you write

# My heading {my-heading}

in the header, and link to it like

[My heading](#my-heading)

A little more verbose, but less magic going on.

I’ll leave this open as a reference/reminder. Will be on hold until the relevant feature is implemented in Hoedown.

diethardsteiner commented 10 years ago

Thanks for your reply! Yes, this is certainly better. I hope Hoedown implements this feature soon.

RoyiAvital commented 8 years ago

Would be a real great addition. Hopefully will be implemented in howdown.

Jmuccigr commented 8 years ago

Pandoc has this feature. Some consistency across the markdown world would be nice. :-)

RoyiAvital commented 8 years ago

@Jmuccigr , I think this is why they invented CommonMark.

I guess we all would like MacDown to support CommonMark.

Jmuccigr commented 8 years ago

@RoyiAvital,

Yes, the developer of pandoc is on the common mark team as well. CommonMark isn't finalized yet either, so it's not so simple.

RoyiAvital commented 8 years ago

I see... Hopefully they also add features beyond the ones they listed.

I wish they added:

  1. Math.
  2. Tables.
  3. To Do List (Like in GitHub).
  4. Tab for Text Indention (Aligning text like we do for code).
  5. Alignment of Images.
  6. Commenting mechanism.
  7. Footnotes.
  8. Reference system.