Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-12-26 15:25:44 +03:00
parent 78af3300c2
commit 05cf25bd16
2 changed files with 17 additions and 2 deletions

View File

@ -855,7 +855,7 @@ var styling = {
.replace(/(\s*)(?<!\\)(ASAP|TEST|BUG|FIX|HACK|STUB|WARNING|CAUTION)(\s*)/gm,
'$1<span class="highlight $2">$2</span>$3')
// elements...
.replace(/(\n|^)(?<!\\)---+[\t ]*(\n|$)/m, '$1<hr>')
.replace(/(\n|^)(?<!\\)---+[\t ]*(\n|$)/gm, '$1<hr>')
// basic styling...
.replace(/(?<!\\)\*(?=[^\s*])(([^*]|\\\*)*[^\s*])(?<!\\)\*/gm, '<b>$1</b>')
.replace(/(?<!\\)~(?=[^\s~])(([^~]|\\~)*[^\s~])(?<!\\)~/gm, '<s>$1</s>')

View File

@ -152,7 +152,22 @@ var setup = function(){
- delete attr from code -- by removing it from attr list (when shown)...
- DONE BUG? can't set `''` as attr value -- parser??
- TOC: tweaking: add args like depth, ... -- as attributes...
- TOC: should it be persistently generated as code and be serializable?
- TOC: persistently generate as code
- ```
TOC
```
should turn into:
```
TOC
\- [moo](#moo)
\- [foo](#foo)
```
shown as:
---
\- [moo](#moo)
\- [foo](#foo)
---
- ASAP check if we can add blocks during element handling...
- simple use strategies:
- custom element
- constructor