Skip to content

Commit

Permalink
feat: add Link
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed May 4, 2019
1 parent daac335 commit 04560ce
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions schema/text/Link.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
title: Link
'@id': stencila:Link
$extends: ../Thing.schema.yaml
role: secondary
status: unstable
description: A link.
properties:
content:
'@id': stencila:content
type: array
items:
$ref: InlineContent.schema.yaml
target:
'@id': stencila:target
type: string
format: uri
relation:
'@id': schema:linkRelationship
description:
The relation between the target and the current thing.
# See https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types
type: string
required:
- content
- target

0 comments on commit 04560ce

Please sign in to comment.