Skip to main content
Code Review

Return to Question

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

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...

added 7 characters in body
Source Link
bjb568
  • 669
  • 4
  • 17

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...

No
Source Link
bjb568
  • 669
  • 4
  • 17

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?

Loading
Tweeted twitter.com/#!/StackCodeReview/status/530640121264361472
Loading
added 6 characters in body
Source Link
bjb568
  • 669
  • 4
  • 17
Loading
Source Link
bjb568
  • 669
  • 4
  • 17
Loading
default

AltStyle によって変換されたページ (->オリジナル) /