Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Allow reference [link] definition to support other structure beyond links #321

Open
criloz opened this issue Sep 28, 2024 · 0 comments

Comments

@criloz
Copy link

criloz commented Sep 28, 2024

examples:

[link]: http://example.com
[pop-up-card]: 
  # hello world
   Lorem Ipsum
[code]: 
  ```= js
    function main(age){
          if(age>25) {return "accepted"}
          else {return "declined"}
     } 
  ```
  • It will be known just as reference defintion

The interpretation of those other kind of reference will be lt it open to the renderer engine, it allows implementing thing like popup widgets and callable code.

To maintain backward compatibility in this form [link]: http://example.com will behave exactly like now, only admitting a link that can have multiple lines, but if a line break is found after ]: it will be starting to accept a block syntax taking into account the indentation similar to how a Footnote behave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant