mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-08-13 18:02:25 +00:00
deploy: c557b051f7
This commit is contained in:
parent
d2028e552f
commit
9d27c7d44e
265 changed files with 6780 additions and 6779 deletions
js
|
@ -594,7 +594,8 @@ function initCodeClipboard(){
|
|||
var text = getCodeText( code );
|
||||
var inPre = code.parentNode.tagName.toLowerCase() == 'pre';
|
||||
var inTable = inPre &&
|
||||
code.parentNode.parentNode.tagName.toLowerCase() == 'td';
|
||||
code.parentNode.parentNode.tagName.toLowerCase() == 'td' &&
|
||||
code.parentNode.parentNode.classList.contains('lntd');
|
||||
// avoid copy-to-clipboard for highlight shortcode in table lineno mode
|
||||
var isFirstLineCell = inTable &&
|
||||
code.parentNode.parentNode.parentNode.querySelector( 'td:first-child > pre > code' ) == code;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue