~/talk

Building your own flavored Markdown with Ruby

Talkat The Conf 2018 · on Wednesday, 2018-11-14· [ruby]
links:none on file
slides:none on file

Shows how GitLab’s Markdown is implemented in Ruby by extending Kramdown into a real transpiler: lexical scanning with StringScanner tokenization, rule-driven parsers that emit a Cramdown AST, and HTML conversion via the existing converter. Demonstrates tricky regex fixes (switching to non-greedy regex to avoid catastrophic backtracking), ordering pitfalls, and when find-and-replace fails. Includes code-level patterns for commit/mention parsing and how those become HTML links.

AI-written summary · about

  1. 0:00Introduction
  2. 1:57What is Markdown
  3. 4:51Text to HTML conversion
  4. 7:06First parsing attempts
  5. 11:53Regular expressions
  6. 19:57Block level markup
  7. 20:19Compilers and transpilers
  8. 23:15Lexical analyzer
  9. 27:12Tokenization
  10. 29:00Abstract syntax tree
  11. 30:32Real-world usage
  12. 32:02GitLab Flavored Markdown
  13. 35:35Code implementation
  14. 40:09AST examples
  15. 43:12Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.