docstr: Display text in title formatting.
  
  Each document should have a single `st.title()`, although this is not
  enforced.
  
  Parameters
  ----------
  body : str
      The text to display as Github-flavored Markdown. Syntax
      information can be found at: https://github.github.com/gfm.
  
      This also supports:
  
      * Emoji shortcodes, such as ``:+1:``  and ``:sunglasses:``.
        For a list of all supported codes,
        see https://share.streamlit.io/streamlit/emoji-shortcodes.
  
      * LaTeX expressions, by wrapping them in "$" or "$$" (the "$$"
        must be on their own lines). Supported LaTeX functions are listed
        at https://katex.org/docs/supported.html.
  
      * Colored text, using the syntax ``:color[text to be colored]``,
        where ``color`` needs to be replaced with any of the following
        supported colors: blue, green, orange, red, violet, gray/grey, rainbow.
  
  anchor : str or False
      The anchor name of the header that can be accessed with #anchor
      in the URL. If omitted, it generates an anchor using the body.
      If False, the anchor is not shown in the UI.
  
  help : str
      An optional tooltip that gets displayed next to the title.
  
  Examples
  --------
  >>> import streamlit as st
  >>>
  >>> st.title('This is a title')
  >>> st.title('_Streamlit_ is :blue[cool] :sunglasses:')
  
  .. output::
     https://doc-title.streamlit.app/
     height: 220px
docstr_tok: ["Display","text","in","title","formatting",".","Each","document","should","have","a","single","`","st.title","(",")","`",",","although","this","is","not","enforced",".","Parameters","--","--","--","--","--","body",":","str","The","text","to","display","as","Github-flavored","Markdown",".","Syntax","information","can","be","found","at",":","https",":","\/\/github.github.com\/gfm",".","This","also","supports",":","*","Emoji","shortcodes",",","such","as","``",":","+1",":","``","and","``",":","sunglasses",":","``",".","For","a","list","of","all","supported","codes",",","see","https",":","\/\/share.streamlit.io\/streamlit\/emoji-shortcodes",".","*","LaTeX","expressions",",","by","wrapping","them","in","``","$","''","or","``","$","$","''","(","the","``","$","$","''","must","be","on","their","own","lines",")",".","Supported","LaTeX","functions","are","listed","at","https",":","\/\/katex.org\/docs\/supported.html",".","*","Colored","text",",","using","the","syntax","``",":","color","[","text","to","be","colored","]","``",",","where","``","color","``","needs","to","be","replaced","with","any","of","the","following","supported","colors",":","blue",",","green",",","orange",",","red",",","violet",",","gray\/grey",",","rainbow",".","anchor",":","str","or","False","The","anchor","name","of","the","header","that","can","be","accessed","with","#","anchor","in","the","URL",".","If","omitted",",","it","generates","an","anchor","using","the","body",".","If","False",",","the","anchor","is","not","shown","in","the","UI",".","help",":","str","An","optional","tooltip","that","gets","displayed","next","to","the","title",".","Examples","--","--","--","--",">",">",">","import","streamlit","as","st",">",">",">",">",">",">","st.title","(","'This","is","a","title","'",")",">",">",">","st.title","(","'_Streamlit_","is",":","blue","[","cool","]",":","sunglasses",":","'",")","..","output",":",":","https",":","\/\/doc-title.streamlit.app\/","height",":","220px"]
code: def title(
      self,
      body: SupportsStr,
      anchor: Anchor = None,
      *,  # keyword-only arguments:
      help: Optional[str] = None,
  ) -> "DeltaGenerator":
      """Display text in title formatting.
  
      Each document should have a single `st.title()`, although this is not
      enforced.
  
      Parameters
      ----------
      body : str
          The text to display as Github-flavored Markdown. Syntax
          information can be found at: https://github.github.com/gfm.
  
          This also supports:
  
          * Emoji shortcodes, such as ``:+1:``  and ``:sunglasses:``.
            For a list of all supported codes,
            see https://share.streamlit.io/streamlit/emoji-shortcodes.
  
          * LaTeX expressions, by wrapping them in "$" or "$$" (the "$$"
            must be on their own lines). Supported LaTeX functions are listed
            at https://katex.org/docs/supported.html.
  
          * Colored text, using the syntax ``:color[text to be colored]``,
            where ``color`` needs to be replaced with any of the following
            supported colors: blue, green, orange, red, violet, gray/grey, rainbow.
  
      anchor : str or False
          The anchor name of the header that can be accessed with #anchor
          in the URL. If omitted, it generates an anchor using the body.
          If False, the anchor is not shown in the UI.
  
      help : str
          An optional tooltip that gets displayed next to the title.
  
      Examples
      --------
      >>> import streamlit as st
      >>>
      >>> st.title('This is a title')
      >>> st.title('_Streamlit_ is :blue[cool] :sunglasses:')
  
      .. output::
         https://doc-title.streamlit.app/
         height: 220px
  
      """
      return self.dg._enqueue(
          "heading",
          HeadingMixin._create_heading_proto(
              tag=HeadingProtoTag.TITLE_TAG,
              body=body,
              anchor=anchor,
              help=help,
          ),
      )
  
file_path: streamlit/lib/streamlit/elements/heading.py
imports: from enum import Enum
  from typing import TYPE_CHECKING, Optional, Union, cast
  from typing_extensions import Literal
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Heading_pb2 import Heading
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.string_util import clean_text
  from streamlit.type_util import SupportsStr
label_desc: Use image node_id 3 for calling the HeadingMixin obj's underlying member method code with example usage: obj.title(body, anchor) and returns: self