6b99a1835dCreated a separate parser list for all parsers (except the unit parser is replaced with the non-newline unit parser); use that parser when parsing list linesAadhavan Srinivasan2025-06-10 09:12:42 -04:00
b1b99189c9Link tect can be empty; inline code cannot be empty and can have nested backticks; created a unit parser for all characters except newlineAadhavan Srinivasan2025-06-10 09:11:19 -04:00
234145bcb3Started working on parsing changes to allow incomplete elements to be parsed (eg. opening bold, followed by text, without closing bold)Aadhavan Srinivasan2025-05-20 22:21:59 -04:00
e051c87f08Factor list line common parsing into a separate function; refactored OList and UList line parsing to us itAadhavan Srinivasan2025-05-20 16:48:31 -04:00
cdca6ea95eA list item doesn't need to have a nested list item parser, because the line item parser handles the nested list.Aadhavan Srinivasan2025-05-20 16:46:52 -04:00
00dfba81ebCreated a list of document parsers; implemented ordered list parsing.Aadhavan Srinivasan2025-05-20 16:45:37 -04:00
39152c0034Factor out common code for UList and OList parsing into a separate function. Refactored UList function; wrote OList function.Aadhavan Srinivasan2025-05-20 16:45:07 -04:00
2514ecdafcParse bold, italic and strikethrough in-order, instead of trying to find the end, then parsing everything in the middle.Rockingcool2025-05-20 12:19:59 -05:00
c52d5556a2Allow for multiple blank lines after headerRockingcool2025-05-20 12:18:52 -05:00
5fc1b1122aCreate a function to 'fallthrough parse' ie. try the second parser only if the first one fails.Rockingcool2025-05-20 12:18:23 -05:00
83dd0024c4Space doesn't have to be a reserved character anymore.Rockingcool2025-05-20 12:17:59 -05:00
dddcca0185Wrote a lot of helper functions - most importantly greedyParseRockingcool2025-05-13 21:40:42 -05:00
e7d94f225aUpdated show definitions for some tokens; add HTML syntaxRockingcool2025-05-09 23:14:09 -05:00
e8eb22f3aeAdded pragmas to suppress LSP warnings; removed a random line that was added by the LSPRockingcool2025-05-09 23:13:31 -05:00
ef1809970bGreatly shortened parseQuotedLine, because I can just use greedyParse instead of using manyTillRockingcool2025-05-09 23:12:53 -05:00
549504d650Consume whitespace between greater-than sign and text in a blockquote lineRockingcool2025-05-09 23:12:12 -05:00
4f23592aebAdd relevant modules to other-modules section, to get rid of cabal's warningsRockingcool2025-05-09 23:10:34 -05:00
b00d79b9aaRenamed Test.hs to MdToHtmlTest.hs so that the filename matches the module name; updated blockquote tests; started working on ordered list testsRockingcool2025-05-09 23:10:04 -05:00
3cd9f24935Wrote helper functions for parseBlockquote, to parse a quoted line and multiple quoted lines.Rockingcool2025-05-09 16:12:09 -05:00
a60b3754e4Rewrite leftmostLongest and leftmostLongestParse so that they don't rely on 'head' which is a partial functionRockingcool2025-05-09 12:17:53 -05:00
3330185393Make MdToken a Semigroup and a Monoid, so that I can use 'mempty' for it.Rockingcool2025-05-09 12:17:22 -05:00