Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MarkdownPreviewHandler

Hierarchy

  • MarkdownPreviewHandler

Implements

Index

Constructors

Properties

contentClass: string = 'markdown-preview'
engine: undefined | MarkdownIt
iconClass: string = 'markdown-icon file-icon'
linkNormalizer: PreviewLinkNormalizer
openerService: OpenerService

Methods

  • canHandle(uri: URI): number
  • findElementForFragment(content: HTMLElement, link: string): undefined | HTMLElement
  • findElementForSourceLine(content: HTMLElement, sourceLine: number): undefined | HTMLElement
  • findLink(element: HTMLElement, container: HTMLElement): undefined | string
  • getEngine(): MarkdownIt
  • getLineElementsAtOffset(content: HTMLElement, offset: number): HTMLElement[]
  • getLineNumberFromAttribute(element: HTMLElement): undefined | number
  • getSourceLineForOffset(content: HTMLElement, offset: number): undefined | number
  • openLink(uri: URI, originUri: URI): Promise<void>
  • resolveUri(link: string, uri: URI, preview: boolean): URI
  • revealFragment(contentElement: HTMLElement, fragment: string): void