According to Dictionary.com, Pedantic can mean
ostentatious in one's learning
Ostentatious means to show off , to attract attention.
The way I interpret it is that
one is so focused on learning that he attracts attention
It sound wrong to me, how does one interpret Pedantic when it is used as above? What are some examples sentence?