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
420
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
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
180
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
200
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
740
トークン化預金DCJPYの取り組みと活用ユースケース
finengine
0
130
Metadata - Section 1: HTML Basics
mohab1
0
120
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
310
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
350
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
440
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
130
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Skip the Path - Find Your Career Trail
mkilby
1
260
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
The Curse of the Amulet
leimatthew05
3
16k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
GraphQLとの向き合い方2022年版
quramy
50
15k
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
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