Skip to content

Comments

Remove escaped underscores, backticks, and brackets from Google Docs exports#13

Merged
hsbt merged 1 commit intoruby:masterfrom
paracycle:fix-escaped-underscores
Feb 24, 2026
Merged

Remove escaped underscores, backticks, and brackets from Google Docs exports#13
hsbt merged 1 commit intoruby:masterfrom
paracycle:fix-escaped-underscores

Conversation

@paracycle
Copy link
Contributor

When meeting logs were exported from Google Docs to Markdown, several characters were unnecessarily escaped with backslashes.

Escaped underscores (539 instances across 49 files):

  • Method names: to\_sto_s, each\_chareach_char
  • C identifiers: \_\_FILE\_\___FILE__, rb\_cFixnumrb_cFixnum

Escaped backticks (83 instances across 28 files):

  • Inline code: \`foo\``foo`

Escaped brackets in code/text context (63 instances across 22 files):

  • Array literals: \[1, 2, 3\][1, 2, 3]
  • Method calls: hash\[key\]hash[key]
  • Tags: \[PATCH\][PATCH], \[ANN\][ANN]

Note: Escaped brackets in ticket references (e.g. \[Feature ...\]) are intentionally left unchanged for a separate cleanup.

53 files changed spanning 2013-2022.

Disclosure: I am trying to make sure all Meeting Notes are formatted correctly, and using LLMs to help me do that. Changes have been made by Claude Opus 4.6, but reviewed by me.

@hsbt
Copy link
Member

hsbt commented Feb 20, 2026

@paracycle Unfortunately, this change is conflicted by other PR. Can you update with the current HEAD?

@paracycle paracycle force-pushed the fix-escaped-underscores branch 3 times, most recently from d7d2040 to 628b993 Compare February 20, 2026 22:47
…exports

When meeting logs were exported from Google Docs to Markdown, several
characters were unnecessarily escaped with backslashes:

Escaped underscores (539 instances, 49 files):
  to\_s -> to_s, \_\_FILE\_\_ -> __FILE__, rb\_cFixnum -> rb_cFixnum

Escaped backticks (83 instances, 28 files):
  \`foo\` -> `foo`

Escaped brackets in code/text context (63 instances, 22 files):
  \[1, 2, 3\] -> [1, 2, 3], hash\[key\] -> hash[key]

Note: escaped brackets in ticket references (e.g. \[Feature ...\])
are intentionally left unchanged for a separate cleanup.

Files affected span 2013-2022, with the majority in 2014-2019.
@paracycle paracycle force-pushed the fix-escaped-underscores branch from 628b993 to d4edf78 Compare February 20, 2026 22:53
@paracycle
Copy link
Contributor Author

I've rebased this on latest master. Thanks for all the reviews @hsbt 🙏❤️

@hsbt hsbt merged commit febb1ce into ruby:master Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants