[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/Litedown/Parser/Passes/ -> Emphasis.js (summary)

(no description)

File Size: 230 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  parse()
  adjustEndingPositions()
  adjustStartingPositions()
  closeSpans()
  getEmphasisByBlock()
  ignoreEmphasis()
  openSpans()
  parseEmphasisByCharacter()
  processEmphasisBlock()
  processEmphasisMatch()

Functions
Functions that are not part of a class:

parse()   X-Ref

param: {?number} Ending position of the current STRONG span in the text

adjustEndingPositions()   X-Ref
Adjust the ending position of current EM and STRONG spans


adjustStartingPositions()   X-Ref
Adjust the starting position of current EM and STRONG spans

If both EM and STRONG are set to start at the same position, we adjust their position
to match the order they are closed. If they start and end at the same position, STRONG
starts before EM to match Markdown's behaviour

closeSpans()   X-Ref
End current valid EM and STRONG spans


getEmphasisByBlock(regexp, pos)   X-Ref
Get emphasis markup split by block

param: {!RegExp} regexp Regexp used to match emphasis
param: {number}  pos    Position in the text of the first emphasis character
return: {!Array}         Each array contains a list of [matchPos, matchLen] pairs

ignoreEmphasis(pos, len)   X-Ref
Test whether emphasis should be ignored at the given position in the text

param: {number}  pos Position of the emphasis in the text
param: {number}  len Length of the emphasis
return: {boolean}

openSpans(pos)   X-Ref
Open EM and STRONG spans whose content starts at given position

param: {number} pos

parseEmphasisByCharacter(character, regexp)   X-Ref
Parse emphasis and strong applied using given character

param: {string} character Markup character, either * or _
param: {!RegExp} regexp    Regexp used to match the series of emphasis character

processEmphasisBlock(block)   X-Ref
Process a list of emphasis markup strings

param: {!Array<!Array<!number>>} block List of [matchPos, matchLen] pairs

processEmphasisMatch(matchPos, matchLen)   X-Ref
Process an emphasis mark

param: {number} matchPos
param: {number} matchLen



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1