Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Goでマークダウンの独自記法を実装する
Search
lag129
August 25, 2025
Technology
440
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Goでマークダウンの独自記法を実装する
lag129
August 25, 2025
Other Decks in Technology
See All in Technology
デザインレビューは自動化できるのか?─ Flutter × Figma で UI 品質保証を考える
techiro
2
790
生成AI時代のIAMのマニアックな話
takuros
4
660
試験勉強はGrokBotでやれ
maigo999
0
110
渡米前の準備を制す!re:Invent 2026徹底準備術 / The Ultimate Preparation Guide for re:Invent 2026
yuj1osm
1
540
増え続けるプロダクトの品質をどう担保するか。ProductSpecとTypeScriptによる取り組み
joere
3
380
Maestro MCPとClaude Code Skillsによる自律的なE2Eテスト支援
asmz
0
410
攻撃 3 時間 vs 復旧 10 時間。アクセスキー流出の非対称性を体感するために CTF を作った話
kazzpapa3
1
140
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
6
3k
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
210
視野はAIに、視座は人に / ai-for-breadth-humans-for-perspective
nkzn
6
3k
基本から分かる!AWSセキュリティ運用の考え方と任せ方
cmusudakeisuke
1
410
IBC 2026 動画技術関連レポート / IBC 2026 Report
cyberagentdevelopers
PRO
2
370
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
390
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
470
Documentation Writing (for coders)
carmenintech
77
5.6k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
500
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Mobile First: as difficult as doing things right
swwweet
225
10k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Ruling the World: When Life Gets Gamed
codingconduct
0
430
Ethics towards AI in product and experience design
skipperchong
2
460
Chasing Engaging Ingredients in Design
codingconduct
0
390
Code Reviewing Like a Champion
maltzj
529
40k
Transcript
Goでマークダウンの独自記法を実装する 2025/08/23 Kyoto.なんか #7 1
自己紹介 id:lag129 使う言語: Kotlin(Android),TypeScript,Python はてなサマーインターンシップ2025に参加しました! 2
インターンシップの課題 Kubernetes上で動作するブログサービスのMarkdownパース処理を実装する GoかTypeScriptで実装する TypeScriptだったら使ったことあるけど... 3
『せっかくインターンシップで開発するなら、新しい ことに挑戦したいなぁ』 ⇛ Goで実装しよう! 4
Wikipedia記法を実装する [wikipedia:日本] goldmarkというライブラリを使用して実装 独自構文の実装にextensionを拡張する 5
できたもの 6
実際のコード1 func Render(ctx context.Context, src string) (string, error) { html
:= template.HTMLEscapeString(src) md := goldmark.New( goldmark.WithExtensions( Wikipedia, ), ) var buf bytes.Buffer if err := md.Convert([]byte(html), &buf); err != nil { return "", nil } return buf.String(), nil } 7
goldmarkの拡張 Trigger() , Parse() , RegisterFuncs() , CloseBlock() ... 見よう見まねで実装
ありがとうDeepWiki 8
実際のコード2 // 中略 client := &http.Client{ CheckRedirect: func(req *http.Request, via
[]*http.Request) error { return http.ErrUseLastResponse }, } resp, _ := client.Head(url) return resp.StatusCode 9
困ったこと extensionの実装方法がドキュメントにない ソースコードを読みこむ [wikipedia:日本] この記法だと既存のリンク記法の実装と被ってうまくいかない {} での実装に変更 10
実装した感想とまとめ 新しいことを始めるのはおもしろい ドキュメントや実際のコードを見ながら実装した体験 パーサーとかgRPCをKotlinで実装したい!! 11