class NotionToMd::TextAnnotation

Append the text type:

Public Class Methods

bold(text) click to toggle source
# File lib/notion_to_md/text_annotation.rb, line 17
def bold(text)
  "**#{text}**"
end
code(text) click to toggle source
# File lib/notion_to_md/text_annotation.rb, line 29
def code(text)
  "`#{text}`"
end
color(text) click to toggle source
# File lib/notion_to_md/text_annotation.rb, line 33
def color(text)
  text
end
italic(text) click to toggle source
# File lib/notion_to_md/text_annotation.rb, line 13
def italic(text)
  "*#{text}*"
end
strikethrough(text) click to toggle source
# File lib/notion_to_md/text_annotation.rb, line 21
def strikethrough(text)
  "~~#{text}~~"
end
underline(text) click to toggle source
# File lib/notion_to_md/text_annotation.rb, line 25
def underline(text)
  "<u>#{text}</u>"
end