Aadhavan Srinivasan
f2d54edd3f
Implemented inline code parsing
2 weeks ago
Aadhavan Srinivasan
5393dc4eb9
Added code tests
2 weeks ago
Aadhavan Srinivasan
e051c87f08
Factor list line common parsing into a separate function; refactored
...
OList and UList line parsing to us it
2 weeks ago
Aadhavan Srinivasan
9b1c51897c
A nested list can be ordered or unordered
2 weeks ago
Aadhavan Srinivasan
2a3dddc7b0
Rename function
2 weeks ago
Aadhavan Srinivasan
a8793b5adb
Remove obsolete comments
2 weeks ago
Aadhavan Srinivasan
eecec764ad
A list can contain a blockquote as well.
2 weeks ago
Aadhavan Srinivasan
cdca6ea95e
A list item doesn't need to have a nested list item parser, because the
...
line item parser handles the nested list.
2 weeks ago
Aadhavan Srinivasan
540b5430e5
Use list of document parsers in parseDocument
2 weeks ago
Aadhavan Srinivasan
00dfba81eb
Created a list of document parsers; implemented ordered list parsing.
2 weeks ago
Aadhavan Srinivasan
39152c0034
Factor out common code for UList and OList parsing into a separate
...
function. Refactored UList function; wrote OList function.
2 weeks ago
Aadhavan Srinivasan
41b35be7c9
Rename function
2 weeks ago
Aadhavan Srinivasan
d2c8565f62
Import Data.Char for isDigit
2 weeks ago
Aadhavan Srinivasan
62eeef2abb
Removed unused functions
2 weeks ago
Aadhavan Srinivasan
9c6634cfec
Added ordered list tests
2 weeks ago
Aadhavan Srinivasan
2a5a68b1de
Fixed test name
2 weeks ago
Aadhavan Srinivasan
f8e1a98bdf
Remove obsolete comment
2 weeks ago
Aadhavan Srinivasan
05433c31f1
Remove unused functions
2 weeks ago
Aadhavan Srinivasan
5c871f2b25
Removed test file
2 weeks ago
Aadhavan Srinivasan
5273c99e6e
Added unordered list tests and integration tests; added strikethrough
...
tests to test list
2 weeks ago
Aadhavan Srinivasan
50888c9c3d
Added bold and strikethrough tests
2 weeks ago
Aadhavan Srinivasan
45115c765c
An unordered list must end in a blank line.
2 weeks ago
Aadhavan Srinivasan
5b0d42fd2d
Use the in-order parsing approach instead of the post-order one.
2 weeks ago
Aadhavan Srinivasan
2a585d00f2
Enforce at least one space between list indicator and list text.
2 weeks ago
Aadhavan Srinivasan
11a3b14cb1
Define a parser for list line tokens, update line token parser
2 weeks ago
Aadhavan Srinivasan
58d3142855
Update comment
2 weeks ago
Aadhavan Srinivasan
0fb651fffc
Add parseUnit instead of parseString to lineParsers
2 weeks ago
Aadhavan Srinivasan
bc05dede06
Create a list of parsers that are used for list line items.
2 weeks ago
Aadhavan Srinivasan
b69e34f823
Parse a single character as a unit
2 weeks ago
Aadhavan Srinivasan
2514ecdafc
Parse bold, italic and strikethrough in-order, instead of trying to find
...
the end, then parsing everything in the middle.
The current approach parses the opening bold (or italic), some text,
then the closing bold (or italic), instead of parsing the opening,
closing, then everything in between.
2 weeks ago
Aadhavan Srinivasan
c52d5556a2
Allow for multiple blank lines after header
2 weeks ago
Aadhavan Srinivasan
5fc1b1122a
Create a function to 'fallthrough parse' ie. try the second parser only
...
if the first one fails.
2 weeks ago
Aadhavan Srinivasan
83dd0024c4
Space doesn't have to be a reserved character anymore.
2 weeks ago
Aadhavan Srinivasan
70761649ad
Derive Eq for defined types
2 weeks ago
Aadhavan Srinivasan
b9c6cc4470
Implemented strikethrough parser
3 weeks ago
Aadhavan Srinivasan
23691f9cfe
Add strikethrough parser to line parser list
3 weeks ago
Aadhavan Srinivasan
8c220cc800
A document can consist of unordered lists as well
3 weeks ago
Aadhavan Srinivasan
ee453c0259
Fixed blockquote parser; implemented unordered list parser and relevant
...
sub-parsers
3 weeks ago
Aadhavan Srinivasan
c90d23617a
A blockquote must have a list of tokens
3 weeks ago
Aadhavan Srinivasan
c574699a8a
Added an import
3 weeks ago
Aadhavan Srinivasan
f55e160e25
Added tests for unordered lists
3 weeks ago
Aadhavan Srinivasan
dddcca0185
Wrote a lot of helper functions - most importantly greedyParse
3 weeks ago
Aadhavan Srinivasan
e7d94f225a
Updated show definitions for some tokens; add HTML syntax
4 weeks ago
Aadhavan Srinivasan
e8eb22f3ae
Added pragmas to suppress LSP warnings; removed a random line that was
...
added by the LSP
4 weeks ago
Aadhavan Srinivasan
ef1809970b
Greatly shortened parseQuotedLine, because I can just use greedyParse
...
instead of using manyTill
4 weeks ago
Aadhavan Srinivasan
549504d650
Consume whitespace between greater-than sign and text in a blockquote
...
line
4 weeks ago
Aadhavan Srinivasan
4f23592aeb
Add relevant modules to other-modules section, to get rid of cabal's
...
warnings
4 weeks ago
Aadhavan Srinivasan
b00d79b9aa
Renamed Test.hs to MdToHtmlTest.hs so that the filename matches the
...
module name; updated blockquote tests; started working on ordered list
tests
4 weeks ago
Aadhavan Srinivasan
3cd9f24935
Wrote helper functions for parseBlockquote, to parse a quoted line and
...
multiple quoted lines.
4 weeks ago
Aadhavan Srinivasan
a60b3754e4
Rewrite leftmostLongest and leftmostLongestParse so that they don't rely
...
on 'head' which is a partial function
4 weeks ago