Compare commits

...

4 commits

Author SHA1 Message Date
pull[bot]
44cbd032da
Merge pull request #279 from dmitmel/master
[pull] master from dmitmel:master
2021-06-03 15:34:06 +00:00
Dmytro Meleshko
fdffee61c7 [nvim] automatically open folds when opening files 2021-06-03 16:42:44 +03:00
Dmytro Meleshko
39602c15f0 [scripts/markdown2htmldoc] add a title tag to the generated documents 2021-06-03 13:37:07 +03:00
Dmytro Meleshko
1a91687dd1 [scripts/markdown2htmldoc] always show header anchors on touchscreens 2021-06-03 13:17:20 +03:00
4 changed files with 16 additions and 4 deletions

View file

@ -54,7 +54,11 @@ set commentstring=//%s
" remember cursor position
augroup vimrc-editing-remember-cursor-position
autocmd!
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exec "normal! g`\"" | endif
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$")
\| exec "normal! g`\""
\|endif
\|silent! .foldopen
augroup END
" }}}

View file

@ -1,6 +1,7 @@
#!/usr/bin/env node
const fs = require('fs');
const pathM = require('path');
const argparse = require('argparse');
const markdownIt = require('markdown-it');
const markdownItTaskCheckbox = require('markdown-it-task-checkbox');
@ -110,6 +111,7 @@ let renderedHtmlDocument = `
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>${pathM.basename(args.INPUT_FILE || '<stdin>')}</title>
${stylesheetsTexts.map((s) => `<style>\n${s}\n</style>`).join('\n')}
</head>
<body>

File diff suppressed because one or more lines are too long

View file

@ -265,8 +265,14 @@ h6 {
}
}
&:hover .anchor {
> * {
&:hover {
.anchor > * {
visibility: visible;
}
}
@media (hover: none) {
.anchor > * {
visibility: visible;
}
}