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

13147 Commits

Author SHA1 Message Date
Rob Rix
50b55427f6 Define a Section type. 2017-06-08 12:16:40 -04:00
Rob Rix
e4cb8f9329 Merge pull request #1148 from github/abstract-assignment-over-the-input-term-type
Abstract assignment over the input term type
2017-06-08 11:38:39 -04:00
Rob Rix
3f0f24f824 Merge branch 'master' into abstract-assignment-over-the-input-term-type 2017-06-08 10:22:13 -04:00
Timothy Clem
67f1d8936a Merge pull request #1146 from github/add-language-to-parse-response
Return language field in parse JSON response
2017-06-08 07:17:50 -07:00
Timothy Clem
572c24d36d Auto derive ToJSON right in Language.hs 2017-06-08 07:01:03 -07:00
Rob Rix
8695fd3144 List items can contain multiple block elements. 2017-06-08 08:49:51 -04:00
Rob Rix
b019a2b237 Correct the spec. 2017-06-07 20:17:14 -04:00
Rob Rix
571e9fe1aa Alphabetize the languages. 2017-06-07 20:05:16 -04:00
Rob Rix
c1a01b3dd2 Parse Markdown. 2017-06-07 20:04:39 -04:00
Rob Rix
511719b8b6 Diff Markdown. 2017-06-07 20:04:05 -04:00
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