projectmallard / mallard-ducktype

Parser for the lightweight Ducktype syntax for Mallard
MIT License
10 stars 4 forks source link

@license does not support links properly and is not styled like it should #13

Closed kittykat closed 6 years ago

kittykat commented 6 years ago

Having a link inside a license doesn't seem to be working and it doesn't seem to be tested.

This input:

@license[>>https://creativecommons.org/licenses/by-sa/4.0/]
  This work is licensed under a
  $link[>>http://creativecommons.org/licenses/by-sa/4.0/](Creative Commons
  Attribution-ShareAlike 4.0 International License).

  As a special exception, the copyright holders give you permission to copy,
  modify, and distribute the example code contained in this document under
  the terms of your choosing, without restriction.

Produces this output:

License
This work is licensed under a $link[>>http://creativecommons.org/licenses/by-sa/4.0/](Creative Commons Attribution-ShareAlike 4.0 International License).

As a special exception, the copyright holders give you permission to copy, modify, and distribute the example code contained in this document under the terms of your choosing, without restriction.

The word "License" is also styled as a normal paragraph. It should be the same style as "About".

The link from "@license[>>https://creativecommons.org/licenses/by-sa/4.0/]" does not seem to be used for anything.