Skip to content

Commit

Permalink
Github Issue #156: In the process of adding a method to scan text for…
Browse files Browse the repository at this point in the history
… markdown symbols and keeping showing the markdown symbols
  • Loading branch information
AngryFender committed Apr 18, 2024
1 parent 6ef6e1e commit 94d589b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mktextdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,19 @@ void MkTextDocument::cursorPosChangedHandle( bool hasSelection, int blockNumber,
}
hideMKSymbolsFromDrawingRect(rect,hasSelection,blockNumber,false, range, true);


//1. insert raw text in new cursor blocks
scanShowMkSymbolsInRangeOfBlocks(range, true);

//2. format texts from previous cursor blocks

}

void MkTextDocument::scanShowMkSymbolsInRangeOfBlocks(SelectRange * range,const bool clearPushCheckBoxData)
{
//iterate from the first selected block to end selected block

}
void MkTextDocument::removeAllMkDataHandle(int blockNo)
{
QTextDocument::setPlainText(this->rawDocument.toPlainText());
Expand Down
1 change: 1 addition & 0 deletions mktextdocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public slots:

void hideMKSymbolsFromDrawingRect(QRect rect,bool hasSelection, int blockNumber, bool showAll,SelectRange * const editSelectRange, const bool clearPushCheckBoxData = true);

void scanShowMkSymbolsInRangeOfBlocks(SelectRange *range, const bool clearPushCheckBoxData);
};

struct UndoData{
Expand Down

0 comments on commit 94d589b

Please sign in to comment.