Aadhavan Srinivasan
f8e1a98bdf
Remove obsolete comment
1 month ago
Aadhavan Srinivasan
05433c31f1
Remove unused functions
1 month ago
Aadhavan Srinivasan
5c871f2b25
Removed test file
1 month ago
Aadhavan Srinivasan
5273c99e6e
Added unordered list tests and integration tests; added strikethrough
...
tests to test list
1 month ago
Aadhavan Srinivasan
50888c9c3d
Added bold and strikethrough tests
1 month ago
Aadhavan Srinivasan
45115c765c
An unordered list must end in a blank line.
1 month ago
Aadhavan Srinivasan
5b0d42fd2d
Use the in-order parsing approach instead of the post-order one.
1 month ago
Aadhavan Srinivasan
2a585d00f2
Enforce at least one space between list indicator and list text.
1 month ago
Aadhavan Srinivasan
11a3b14cb1
Define a parser for list line tokens, update line token parser
1 month ago
Aadhavan Srinivasan
58d3142855
Update comment
1 month ago
Aadhavan Srinivasan
0fb651fffc
Add parseUnit instead of parseString to lineParsers
1 month ago
Aadhavan Srinivasan
bc05dede06
Create a list of parsers that are used for list line items.
1 month ago
Aadhavan Srinivasan
b69e34f823
Parse a single character as a unit
1 month 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.
1 month ago
Aadhavan Srinivasan
c52d5556a2
Allow for multiple blank lines after header
1 month ago
Aadhavan Srinivasan
5fc1b1122a
Create a function to 'fallthrough parse' ie. try the second parser only
...
if the first one fails.
1 month ago
Aadhavan Srinivasan
83dd0024c4
Space doesn't have to be a reserved character anymore.
1 month ago
Aadhavan Srinivasan
70761649ad
Derive Eq for defined types
1 month ago
Aadhavan Srinivasan
b9c6cc4470
Implemented strikethrough parser
1 month ago
Aadhavan Srinivasan
23691f9cfe
Add strikethrough parser to line parser list
1 month ago
Aadhavan Srinivasan
8c220cc800
A document can consist of unordered lists as well
2 months ago
Aadhavan Srinivasan
ee453c0259
Fixed blockquote parser; implemented unordered list parser and relevant
...
sub-parsers
2 months ago
Aadhavan Srinivasan
c90d23617a
A blockquote must have a list of tokens
2 months ago
Aadhavan Srinivasan
c574699a8a
Added an import
2 months ago
Aadhavan Srinivasan
f55e160e25
Added tests for unordered lists
2 months ago
Aadhavan Srinivasan
dddcca0185
Wrote a lot of helper functions - most importantly greedyParse
2 months ago
Aadhavan Srinivasan
e7d94f225a
Updated show definitions for some tokens; add HTML syntax
2 months ago
Aadhavan Srinivasan
e8eb22f3ae
Added pragmas to suppress LSP warnings; removed a random line that was
...
added by the LSP
2 months ago
Aadhavan Srinivasan
ef1809970b
Greatly shortened parseQuotedLine, because I can just use greedyParse
...
instead of using manyTill
2 months ago
Aadhavan Srinivasan
549504d650
Consume whitespace between greater-than sign and text in a blockquote
...
line
2 months ago
Aadhavan Srinivasan
4f23592aeb
Add relevant modules to other-modules section, to get rid of cabal's
...
warnings
2 months 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
2 months ago
Aadhavan Srinivasan
3cd9f24935
Wrote helper functions for parseBlockquote, to parse a quoted line and
...
multiple quoted lines.
2 months ago
Aadhavan Srinivasan
a60b3754e4
Rewrite leftmostLongest and leftmostLongestParse so that they don't rely
...
on 'head' which is a partial function
2 months ago
Aadhavan Srinivasan
3330185393
Make MdToken a Semigroup and a Monoid, so that I can use 'mempty' for
...
it.
2 months ago
Aadhavan Srinivasan
1df7f64aec
Started working on blockquote parser
2 months ago
Aadhavan Srinivasan
bfd627c763
Added blockquote tests
2 months ago
Aadhavan Srinivasan
81671727b2
Added more parsers for escaped characters and links.
2 months ago
Aadhavan Srinivasan
1b821c4315
Declare separate variable for escaped characters.
2 months ago
Aadhavan Srinivasan
51728dd3a1
Added double-quotes to link URL when printing link.
2 months ago
Aadhavan Srinivasan
56e1514213
Added more tests
2 months ago
Aadhavan Srinivasan
e7ea7b6ba6
Removed unecessary case statement
2 months ago
Aadhavan Srinivasan
ef132791a1
Applied lots of hints, mostly redundant brackets
2 months ago
Aadhavan Srinivasan
ca0d09dfab
Added another test
2 months ago
Aadhavan Srinivasan
d1b0ce6b10
Move parseHeader up in the chain - parseDocument can either parse
...
headers or a paragraph
2 months ago
Aadhavan Srinivasan
b6f51c33c7
Parse until EOF instead of adding a manual check.
2 months ago
Aadhavan Srinivasan
9ffbb7365c
Removed commented line
2 months ago
Aadhavan Srinivasan
71aacdd26a
Removed unecessary parentheses
2 months ago
Aadhavan Srinivasan
873795e267
Removed unecessary function
2 months ago
Aadhavan Srinivasan
9a128407cc
Fixed newline bug; working on fixing the last failing test
2 months ago