1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 09:21:35 +03:00
Commit Graph

13136 Commits

Author SHA1 Message Date
Rob Rix
ec25974df2 Short-circuit ToC for Markdown.
Later on we’ll want to define tables of contents for markup elements, but we don’t have a way to express their semantic role yet.
2017-06-07 20:02:42 -04:00
Rob Rix
95924c1ba0 Assign HTML blocks. 2017-06-07 20:00:06 -04:00
Rob Rix
ca2394e78a Assign line breaks and soft breaks. 2017-06-07 19:56:54 -04:00
Rob Rix
3e527cd7b8 Add thematic breaks (separators, horizontal rules, lines). 2017-06-07 19:47:46 -04:00
Rob Rix
6d7602dc64 Links’ & images’ titles are optional. 2017-06-07 19:44:22 -04:00
Rob Rix
a2b931c6ac Code blocks have Nothing for the language when it’s not provided. 2017-06-07 19:41:59 -04:00
Rob Rix
33f3871a43 Assign code blocks. 2017-06-07 19:39:35 -04:00
Rob Rix
aea81fe41e Code has an optional language. 2017-06-07 19:37:33 -04:00
Rob Rix
95811013bd Assign inline code. 2017-06-07 19:36:26 -04:00
Rob Rix
b5a7b90d69 Assign images. 2017-06-07 19:33:58 -04:00
Rob Rix
046fec7f26 Assign block quotes. 2017-06-07 19:32:28 -04:00
Rob Rix
7591e15431 Unqualify the grammar type. 2017-06-07 19:30:39 -04:00
Rob Rix
27b4484aee Add a section header for implementation details. 2017-06-07 19:28:19 -04:00
Rob Rix
5598b8b581 Assign links. 2017-06-07 19:27:34 -04:00
Rob Rix
83aa91006f Spacing. 2017-06-07 19:23:47 -04:00
Rob Rix
1bdead623c Assign ordered/unordered lists into distinct structures. 2017-06-07 19:23:14 -04:00
Rob Rix
429bb4bf96 Correct the reference to NodeType in Parser. 2017-06-07 19:22:48 -04:00
Rob Rix
cefb39cc29 Reference HEADING via the CMark module. 2017-06-07 19:18:03 -04:00
Rob Rix
9638c5d092 Define ordered and unordered lists. 2017-06-07 19:15:55 -04:00
Rob Rix
cf47ee0e2c Group the markup datatypes under headings. 2017-06-07 19:14:36 -04:00
Rob Rix
988cbdb404 Move the markup datatypes to their own module. 2017-06-07 19:13:49 -04:00
Rob Rix
a60f9954f4 Stub in a Markup module. 2017-06-07 19:11:03 -04:00
Rob Rix
4233a0eec3 Sort imports. 2017-06-07 19:10:24 -04:00
Rob Rix
4937788a97 Correct the SourcePos to be 1-indexed. 2017-06-07 19:09:17 -04:00
Rob Rix
9620b09003 Rename withNode to project. 2017-06-07 19:07:00 -04:00
Rob Rix
96a0df33fe Assign list items. 2017-06-07 19:03:02 -04:00
Rob Rix
bcc642a976 Assign headings. 2017-06-07 18:54:25 -04:00
Rob Rix
a657ff311f Stub in parsing of lists.
NB: this doesn’t currently respect ordered/unordered.
2017-06-07 18:47:42 -04:00
Rob Rix
b9c8e9964f Use a helper to parse block elements. 2017-06-07 18:46:21 -04:00
Rob Rix
6949afe608 Group inline/block elements. 2017-06-07 18:45:45 -04:00
Rob Rix
cc2547d5ee Correct the emphasis rule. 2017-06-07 18:44:51 -04:00
Rob Rix
7ad8f25919 Always show the root error. 2017-06-07 18:43:36 -04:00
Rob Rix
e39c737115 Define text assignment. 2017-06-07 18:40:33 -04:00
Rob Rix
9445c73bf0 Stub in strong and emphasis assignment. 2017-06-07 18:38:49 -04:00
Rob Rix
5b78a3de21 Stub in assignments for paragraphs and documents. 2017-06-07 18:36:13 -04:00
Rob Rix
20228b8a4d Qualify the grammar type. 2017-06-07 18:35:19 -04:00
Rob Rix
79389707fb Define a convenience to construct a Markdown parser. 2017-06-07 18:30:33 -04:00
Rob Rix
6af92900ff Decouple the AST type in assignment parsers from the grammar type. 2017-06-07 18:30:24 -04:00
Rob Rix
6e5660c49d Add Syntax.Error to Markdown. 2017-06-07 18:29:53 -04:00
Rob Rix
a0cf560d25 Correct the Markdown ast type. 2017-06-07 18:29:45 -04:00
Rob Rix
8b4b0a10da Export assignBy. 2017-06-07 18:21:31 -04:00
Rob Rix
14e538fa25 Produce assignment-style AST for Markdown. 2017-06-07 18:20:16 -04:00
Rob Rix
9c49f3366f Map NodeType onto Grammar. 2017-06-07 18:13:44 -04:00
Rob Rix
e4ad59bb25 Expand the Grammar datatype. 2017-06-07 18:05:14 -04:00
Rob Rix
9b0f6f777d Move the Grammar datatype into Language.Markdown. 2017-06-07 17:29:35 -04:00
Rob Rix
89c9e546eb Move the HasCallStack constraint into the Assignment type synonym. 2017-06-07 17:26:04 -04:00
Rob Rix
d01f188d4d Stub in an assignment for Markdown. 2017-06-07 16:28:26 -04:00
Rob Rix
28ee63a046 Stub in a module for Markdown assignment. 2017-06-07 16:18:49 -04:00
Rob Rix
7707eb8991 Define a withNode smart constructor. 2017-06-07 16:17:51 -04:00
Rob Rix
90e7b5a5c2 Define the interpretation of WithNode assignments. 2017-06-07 16:16:10 -04:00