code: def smartypants(text):
      
      byte_str = text.encode('utf-8')
      ob = lib.hoedown_buffer_new(OUNIT)
      lib.hoedown_html_smartypants(ob, byte_str, len(byte_str))
  
      try:
          return to_string(ob)
      finally:
          lib.hoedown_buffer_free(ob);
docs: Transforms sequences of characters into HTML entities.
  
      ===================================  =====================  =========
      Markdown                             HTML                   Result
      ===================================  =====================  =========
      ``'s`` (s, t, m, d, re, ll, ve)      &rsquo;s               ’s
      ``"Quotes"``                         &ldquo;Quotes&rdquo;   “Quotes”
      ``---``                              &mdash;                —
      ``--``                               &ndash;                –
      ``...``                              &hellip;               …
      ``. . .``                            &hellip;               …
      ``(c)``                              &copy;                 ©
      ``(r)``                              &reg;                  ®
      ``(tm)``                             &trade;                ™
      ``3/4``                              &frac34;               ¾
      ``1/2``                              &frac12;               ½
      ``1/4``                              &frac14;               ¼
      ===================================  =====================  =========