I made another markdown parser. (original original, this one on github). Look, I'm not crazy (sorta), I just like making markdown parsers...
I made another markdown parser. (original, this one on github). Look, I'm not crazy (sorta), I just like making markdown parsers...
I made another markdown parser. (original, this one on github). Look, I'm not crazy (sorta), I just like making markdown parsers...
I made another markdown parser. (original, this one, on github). Look, I'm not crazy (sorta), I just like making markdown parsers...
I made another markdown parser. (original, this one, on github). Look, I'm not crazy, I just like making markdown parsers...
I made another markdown parser. (original, this one on github). Look, I'm not crazy (sorta), I just like making markdown parsers...
inlineMarkdown
replaces literal characters with random strings so the nested array splitting/mappings don't think they're for formatting, before they are converted back to either the literal character or the original string in the case of in-lineinline code. I'm kind of concerned about the nesting and repetition... Should I make the random string generation be a separate function? Should I keep an array of literal character replacements? Is there a better way to write the nested split/maps? Is this method efficient?
markdown
operates line-by-line and figures out what to do based on the first characters of the line. For multi-line things (like lists) it appends the line to a variable and deals with its contents in the end of that chunk. It calls itself recursively for blockquotes and nestednestey-things. Would it be possible to split not by line, but by chunk? Maybe a nasty regex. Could the repetition with ol
and ul
be avoided? Do I have HTML (XHTML-level strictness) or XSS errors?
inlineMarkdown
replaces literal characters with random strings so the nested array splitting/mappings don't think they're for formatting, before they are converted back to either the literal character or the original string in the case of in-line code. I'm kind of concerned about the nesting and repetition... Should I make the random string generation be a separate function? Should I keep an array of literal character replacements? Is there a better way to write the nested split/maps? Is this method efficient?
markdown
operates line-by-line and figures out what to do based on the first characters of the line. For multi-line things (like lists) it appends the line to a variable and deals with its contents in the end of that chunk. It calls itself recursively for blockquotes and nested-things. Would it be possible to split not by line, but by chunk? Maybe a nasty regex. Could the repetition with ol
and ul
be avoided? Do I have HTML (XHTML-level strictness) or XSS errors?
inlineMarkdown
replaces literal characters with random strings so the nested array splitting/mappings don't think they're for formatting, before they are converted back to either the literal character or the original string in the case of inline code. I'm kind of concerned about the nesting and repetition... Should I make the random string generation be a separate function? Should I keep an array of literal character replacements? Is there a better way to write the nested split/maps? Is this method efficient?
markdown
operates line-by-line and figures out what to do based on the first characters of the line. For multi-line things (like lists) it appends the line to a variable and deals with its contents in the end of that chunk. It calls itself recursively for blockquotes and nestey-things. Would it be possible to split not by line, but by chunk? Maybe a nasty regex. Could the repetition with ol
and ul
be avoided? Do I have HTML (XHTML-level strictness) or XSS errors?
- 8.9k
- 1
- 26
- 50