highmark-markdown 0.0.305 → 0.0.306

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,9 +10,7 @@ class XMP extends Element {
10
10
  update(htmls) {
11
11
  htmls = htmls.join(EMPTY_STRING);
12
12
 
13
- const body = `<body>
14
- ${htmls}</body>`,
15
- html = body;
13
+ const html = `${htmls}`;
16
14
 
17
15
  this.html(html);
18
16
  }
@@ -38,9 +36,11 @@ ${htmls}</body>`,
38
36
 
39
37
  export default withStyle(XMP)`
40
38
 
41
- border: 1px solid darkgrey;
42
- padding: 0.25rem;
43
- overflow: scroll;
39
+ top: 0;
40
+ left: 0;
41
+ width: 100%;
42
+ height: 100%;
43
+ position: absolute;
44
44
  font-size: 1.2rem;
45
45
  line-height: 1.5rem;
46
46
  font-family: monospace;
@@ -3,15 +3,16 @@
3
3
  import withStyle from "easy-with-style"; ///
4
4
 
5
5
  import { Element } from "easy";
6
- import { RowsDiv, ColumnDiv, ColumnsDiv, VerticalSplitterDiv } from "easy-layout";
7
6
  import { MarkdownLexer, MarkdownParser, MarkdownStyleLexer, MarkdownStyleParser } from "../index";
7
+ import { RowDiv, RowsDiv, ColumnDiv, ColumnsDiv, VerticalSplitterDiv, HorizontalSplitterDiv } from "easy-layout";
8
8
 
9
- import XMP from "./view/xmp";
9
+ import HTMLDiv from "./view/div/html";
10
10
  import PreviewDiv from "./view/div/preview";
11
11
  import SubHeading from "./view/subHeading";
12
12
  import CSSTextarea from "./view/textarea/css";
13
13
  import TabButtonsDiv from "./view/div/tabButtons";
14
14
  import LeftSizeableDiv from "./view/div/sizeable/left";
15
+ import RightSizeableDiv from "./view/div/sizeable/right";
15
16
  import MarkdownContainerDiv from "./view/div/container/markdown";
16
17
  import MarkdownStyleContainerDiv from "./view/div/container/markdownStyle";
17
18
 
@@ -145,18 +146,25 @@ class View extends Element {
145
146
  <VerticalSplitterDiv/>
146
147
  <ColumnDiv>
147
148
  <RowsDiv>
148
- <SubHeading>
149
- HTML
150
- </SubHeading>
151
- <XMP/>
152
- <SubHeading>
153
- CSS
154
- </SubHeading>
155
- <CSSTextarea/>
156
- <SubHeading>
157
- Preview
158
- </SubHeading>
159
- <PreviewDiv/>
149
+ <RightSizeableDiv>
150
+ <SubHeading>
151
+ HTML
152
+ </SubHeading>
153
+ <HTMLDiv/>
154
+ </RightSizeableDiv>
155
+ <HorizontalSplitterDiv/>
156
+ <RowDiv>
157
+ <RowsDiv>
158
+ <SubHeading>
159
+ CSS
160
+ </SubHeading>
161
+ <CSSTextarea/>
162
+ <SubHeading>
163
+ Preview
164
+ </SubHeading>
165
+ <PreviewDiv/>
166
+ </RowsDiv>
167
+ </RowDiv>
160
168
  </RowsDiv>
161
169
  </ColumnDiv>
162
170
  </ColumnsDiv>
@@ -182,12 +190,7 @@ class View extends Element {
182
190
  `;
183
191
 
184
192
  static initialMarkdown = `
185
- @contents 2
186
-
187
- # Primary heading
188
-
189
- ## Secondary heading
190
-
193
+ [https://en.wikipedia.org/wiki/Backus-Naur_form](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form)
191
194
  `;
192
195
 
193
196
  static tagName = "div";
@@ -224,14 +224,16 @@ const bnf = `
224
224
 
225
225
  | [number]
226
226
 
227
- | [path]
227
+ | [url]
228
228
 
229
- | [identifier]
229
+ | [path]
230
230
 
231
231
  | [word]
232
232
 
233
233
  | [special]
234
234
 
235
+ | [identifier]
236
+
235
237
  | [unassigned]
236
238
 
237
239
  ;