12 votes

Implementation of some sort of mini-referencing system

I think it would be rather cool and suited to tildes style of conversation to have some sort of referencing system built into markdown that is similar to Wikipedia's. Users can format a link so that it appears as a superscript number in the main bulk of the text and then also appears at the bottom of the post automatically after being posted in the classic number referencing style. It could look something like this, where the webpage title would be given as well next to the page and cutoff after a certain amount of characters (please excuse my terrible paint skills). This is clearly not a necessity as we could still just use standard square and normal brackets to insert links, but I think it would be rather nifty to have a built in system that automatically creates a mini list of references, especially if the user writes a rather long, well thought out argument that might require more than a few citations.

2 comments

  1. [2]
    havoc
    (edited )
    Link
    There is no footnote definition in CommonMark. In a complicated way you could emulate it either with link labels or anchors/fragments. After some testing I've noticed, however, the implementation...

    There is no footnote definition in CommonMark. In a complicated way you could emulate it either with link labels or anchors/fragments. After some testing I've noticed, however, the implementation is buggy or restricted on tildes.

    Basically you can only do this:

    paragraph [any], [[text]], [[other]][0], [(1)][1], [{text}][2]
    
    [any]: https:// "optional"
    [text]: https:// "title/hover text"
    [0]: https://
    [1]: https://
    [2]: https://
    

    paragraph any, [text], [other], (1), {text}

    As you can see, no jumps to footnotes; so the following does not work:

    [ \[3\] ], [\[4]][4], [text [5]], [(6)], [{7}], [8](#frag), [1](#jump-to-heading)
    
    [3]: https://
    [4]: https://
    [5]: https://
    [6]: https://
    [7]: https://
    <a id="frag">https://</a>
    ##### jump to heading
    

    [ [3] ], [ [4] ]4, [text 5], [(6)], [{7}], 8, 1

    https://

    jump to heading
    3 votes
    1. pseudolobster
      (edited )
      Link Parent
      Hmm. I wonder, @Deimos said whitelisted html tags can be used, I wonder if you can use <a name> tags... Lorem ipsum dolor sit amet. (1) Lorem ipsum dolor sit amet. (2) Lorem ipsum dolor sit amet....

      Hmm. I wonder, @Deimos said whitelisted html tags can be used, I wonder if you can use <a name> tags...

      Lorem ipsum dolor sit amet. (1) Lorem ipsum dolor sit amet. (2) Lorem ipsum dolor sit amet. (3) Lorem ipsum dolor sit amet. (4) Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.


      References:

      1. Reference 1
      2. Reference 2
      3. Reference the third

      Edit: Nope. The name attributes are stripped from a tags, and you can't link to #tag. Nuts.

      Edit2: Apparently the kids are using the id attribute for this these days. Yeah that doesn't work either.

      4 votes