Skip to content

Finalise syntax #31

Description

@chrisjsewell

Agree that all the core syntax elements are present, and their format is acceptable

Related issues:

Activity

  1. added this to the Beta Release milestone on Feb 14, 2020
  2. chrisjsewell commented on Feb 27, 2020

    @chrisjsewell
    MemberAuthor

    Other syntax from rST to consider:

    Substitution references, can be e.g. text, an image, a hyperlink, or (special) directive:

     |sub|
    
    .. |sub| image:: myimage.png

    Footnote references (also citation references are similar):

    A footnote.[#1]_
    
    .. [#1] A numerical footnote

    Also implemented in some flavours of Markdown (see Extended Syntax):

    Here's a simple footnote,[^1] and here's a longer one.[^bignote]
    
    [^1]: This is the first footnote.
    
    [^bignote]: Here's one with multiple paragraphs and code.
    
        Indent paragraphs to include them in the footnote.

    (note its not technically compliant with CommonMark, as discussed here)

  3. chrisjsewell commented on Feb 27, 2020

    @chrisjsewell
    MemberAuthor

    Note to self; in the documentation, should also highlight the fact that MyST can do nested inline markup, which rST cannot, e.g. Here's a link with italic text.

  4. akhmerov commented on Feb 27, 2020

    @akhmerov
    Contributor

    My 5c: I didn't see a good use for substitution references, aside of counteracting other rst limitations/annoyances.

  5. choldgraf commented on Feb 28, 2020

    @choldgraf
    Member

    I'm "meh" on substitutions...it doesn't seem super useful to me given the added cognitive burden. Footnotes I think are worth implementing - I believe that Pandoc uses

    [^myfootnote]
    
    [^myfootnote]: My footnote text
    

    syntax.


    Sometimes I also wonder if the same syntax style could be used for sidebar notes, like:

    This is [>mysidebarnote]
    
    [>mysidebarnote]: And here is the sidebar note
    

    but that's for a different issue :-)

  6. najuzilu commented on Mar 2, 2020

    @najuzilu
    Member

    It would be great to finalize the syntax for footnote references since we have a few test cases that use them. Another thing to consider regarding footnote references could be automatic enumerate numbering.

  7. mmcky commented on Mar 2, 2020

    @mmcky
    Member

    re: substitutions. It isn't something we need straight away but I think substitutions are useful when building more complex tables. For example adding a multiline code block is harder to do inside of a table -- when you can use simple labels and substitute in the code blocks from a list below it.

  8. choldgraf commented on Mar 2, 2020

    @choldgraf
    Member

    @mmcky just a note that I've found that having markdown-style cell fences for directives has helped with this a bit. You have more control over the whitespacing etc which might make it easier to make these complex tables with directives

  9. chrisjsewell commented on Jun 12, 2021

    @chrisjsewell
    MemberAuthor

    I think this is pretty locked in now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    syntaxdescisions on syntax formats

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions