Aadhavan Srinivasan
6b99a1835d
Created 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 lines
3 weeks ago
Aadhavan Srinivasan
04167e0f96
Parse CSS classes in image and figure
3 weeks ago
Aadhavan Srinivasan
0528e813c5
Parser for CSS classes
3 weeks ago
Aadhavan Srinivasan
b1b99189c9
Link tect can be empty; inline code cannot be empty and can have nested
...
backticks; created a unit parser for all characters except newline
3 weeks ago
Aadhavan Srinivasan
ade3768e29
Try and backtrack
3 weeks ago
Aadhavan Srinivasan
fd6d39ecd6
Parse space at beginning of list
3 weeks ago
Aadhavan Srinivasan
0f04342867
More trying and backtracking; parse and discard extraneous spaces at
...
beginning of list
3 weeks ago
Aadhavan Srinivasan
80ef93bbc9
Try parsing an ordered list item, backtrack if not possible
3 weeks ago
Aadhavan Srinivasan
b73d4131b6
Added support for tables and codeblocks
...
Defined the types, defined 'show', created the parsers, added them to
parser list
3 weeks ago
Aadhavan Srinivasan
c48b8c5ae8
Images and figures now support CSS classes
3 weeks ago
Aadhavan Srinivasan
cf4282b26e
More imports
3 weeks ago
Aadhavan Srinivasan
7b40d6fe7c
Imports
3 weeks ago
Aadhavan Srinivasan
93548a4533
Never mind, doesn't seem to work well
4 weeks ago
Aadhavan Srinivasan
160cb0edeb
Trying to get nested bold and italic to work
4 weeks ago
Aadhavan Srinivasan
05e5548aa9
Huge rewrite - use megaparsec instead of readP
4 weeks ago
Aadhavan Srinivasan
1915628a2b
Used 'in-order' parsing for headers, instead of leftmostLongestParse
1 month ago
Aadhavan Srinivasan
1d9ac86a2a
Implementation and test for horizontal rule
1 month ago
Aadhavan Srinivasan
0320402957
Fixed how trailing newlines are parsed
1 month ago
Aadhavan Srinivasan
da38ac226f
Added figure implementation and tests
1 month ago
Aadhavan Srinivasan
90c7a585d2
Added image parser
1 month ago
Aadhavan Srinivasan
4a15330874
Updated showing of image
1 month ago
Aadhavan Srinivasan
c14112d3e4
Updated special and escapable characters
1 month ago
Aadhavan Srinivasan
ed7d2c1ef1
Added code parser to list line parser list
1 month ago
Aadhavan Srinivasan
eb20f154a4
Removed unused function
1 month ago
Aadhavan Srinivasan
172985131b
Fixed HTML rendering for horizontal rule
1 month ago
Aadhavan Srinivasan
3781e67ab1
Created a separate list of escapable chars
1 month ago
Aadhavan Srinivasan
f2d54edd3f
Implemented inline code parsing
1 month ago
Aadhavan Srinivasan
e051c87f08
Factor list line common parsing into a separate function; refactored
...
OList and UList line parsing to us it
1 month ago
Aadhavan Srinivasan
9b1c51897c
A nested list can be ordered or unordered
1 month ago
Aadhavan Srinivasan
2a3dddc7b0
Rename function
1 month ago
Aadhavan Srinivasan
a8793b5adb
Remove obsolete comments
1 month ago
Aadhavan Srinivasan
eecec764ad
A list can contain a blockquote as well.
1 month 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.
1 month ago
Aadhavan Srinivasan
540b5430e5
Use list of document parsers in parseDocument
1 month ago
Aadhavan Srinivasan
00dfba81eb
Created a list of document parsers; implemented ordered list parsing.
1 month ago
Aadhavan Srinivasan
39152c0034
Factor out common code for UList and OList parsing into a separate
...
function. Refactored UList function; wrote OList function.
1 month ago
Aadhavan Srinivasan
41b35be7c9
Rename function
1 month ago
Aadhavan Srinivasan
d2c8565f62
Import Data.Char for isDigit
1 month ago
Aadhavan Srinivasan
62eeef2abb
Removed unused functions
1 month ago
Aadhavan Srinivasan
f8e1a98bdf
Remove obsolete comment
1 month ago
Aadhavan Srinivasan
05433c31f1
Remove unused functions
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