Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
merge: from master
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Oct 21, 2019
2 parents d8b7ce4 + 41f7b9e commit 22d4d30
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* studio: v1.0.0-beta.7-1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/studio/CHANGELOG.md))

### Web Components
* highlight-code: v1.0.0-rc.1-2 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/highlight-code/CHANGELOG.md))
* highlight-code: v1.0.0-rc.1-3 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/highlight-code/CHANGELOG.md))

### Others
* starter kit: v1.0.0-rc.4-2 ([CHANGELOG](https://github.com/deckgo/deckdeckgo-starter/blob/master/CHANGELOG.md))
Expand Down
6 changes: 3 additions & 3 deletions studio/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@deckdeckgo/charts": "^1.0.0-rc.3-1",
"@deckdeckgo/color": "^1.0.0-rc.2-3",
"@deckdeckgo/core": "^1.0.0-rc.1-2",
"@deckdeckgo/highlight-code": "^1.0.0-rc.1-2",
"@deckdeckgo/highlight-code": "^1.0.0-rc.1-3",
"@deckdeckgo/inline-editor": "^1.0.0-rc.3-2",
"@deckdeckgo/lazy-img": "^1.0.0-rc.1",
"@deckdeckgo/qrcode": "^1.0.0-rc.1-1",
Expand Down
7 changes: 7 additions & 0 deletions webcomponents/highlight-code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.0.0-rc.1-3"></a>
# 1.0.0-rc.1-3 (2019-10-21)

### Fix

* missing place holder (not displayed)

<a name="1.0.0-rc.1-2"></a>
# 1.0.0-rc.1-2 (2019-10-21)

Expand Down
2 changes: 1 addition & 1 deletion webcomponents/highlight-code/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webcomponents/highlight-code/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deckdeckgo/highlight-code",
"version": "1.0.0-rc.1-2",
"version": "1.0.0-rc.1-3",
"description": "A Web Component to highlight your code",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ export class DeckdeckgoHighlightCode {
return new Promise<void>(async (resolve, reject) => {
const container: HTMLElement = this.el.shadowRoot.querySelector('div.deckgo-highlight-code-container');

if (!code || code === undefined || code === '') {
resolve();
return;
}

if (container) {
try {
// clear the container first
Expand Down
2 changes: 1 addition & 1 deletion webcomponents/highlight-code/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1>Without line numbers</h1>
</deckgo-highlight-code>

<h1>Issue #423</h1>
<deckgo-highlight-code language="java" highlight-lines="6,7">
<deckgo-highlight-code language="java" highlight-lines="6,7 13,14">
<code slot="code"># main.tf

resource "aws_lambda_function" "api" {
Expand Down

0 comments on commit 22d4d30

Please sign in to comment.