Skip to content

Licence of content is not machine readable #1643

@elearningdienst

Description

@elearningdienst

EDIT: The issues title should be changed in: Set a proper "licence" attribute on HTML. I can't change that.

Hi Folks,

I found a problem with make my contents licence machine readable. The problem is affecting the YAML Metadata and as well HTML code inside of a note.

Setting

My content is licenced with a CC licence (CC BY-SA 4.0). Google and other search engines should classify the content with the right licence, so that it can be found with the extendes search. I tried two possibilities to reach that aim.

Firs thing - YAML

I put in YAML metadata at the beginning of the document in this matter:

---
title: Example Title
description: Some description
tags: OER, YAML, Another Tag, Foo
lang: de-de
license: https://creativecommons.org/licenses/by-sa/4.0/deed.de
---

As I inspect the output with Mozillas webinspector, I see the description, but no other YAML metadata:

grafik

Additionally, the language seems to be wrong (en instead of de) --> I found this will be fixed in next release: #1481

Second thing - licence attribute in a link

As Markdown does not allow attributes, I tried that with pure HTML code, wich should be fine. That setting works e.g. in Wordpress with Markdown support. But unforunately that won't be parsed in the right way by CodiMD. As you see in the Screenshot, the rel="licence" attribute is completley ignored.

<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.de">**CC BY-SA 4.0**</a>

grafik

Example Note: https://codimd.elearningdienst.de/cPKkvZlETsmdR_Q6KbV43Q?both

I think that behaviour is not expected.

System

I'm on a docker employment with release 2.2.0 but with an own Database server.

Possible Solution

The licence in YAML metadata should be parsed correctly in HTML Google and other search engines need something like that to get the licence of content: <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.de">**CC BY-SA 4.0**</a>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions