add quote block, cite custom mark, and blockquote styles
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6ea1325e91
commit
e425d6d141
10 changed files with 147 additions and 34 deletions
11
site/plugins/custom-marks/index.css
Normal file
11
site/plugins/custom-marks/index.css
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* Mark Green - Couleur verte */
|
||||
.k-writer span.green {
|
||||
color: #04fea0;
|
||||
}
|
||||
|
||||
/* Mark Pixel - Typo serif (placeholder pour future typo pixel) */
|
||||
.k-writer span.pixel {
|
||||
font-family: "Terminal", serif;
|
||||
font-size: 1.15em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
22
site/plugins/custom-marks/index.js
Normal file
22
site/plugins/custom-marks/index.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
panel.plugin("custom/marks", {
|
||||
icons: {
|
||||
"single-quote":
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9.58341 17.3211C8.55316 16.2274 8 15 8 13.0103C8 9.51086 10.4565 6.37366 14.0306 4.82318L14.9233 6.20079C11.588 8.00539 10.9362 10.346 10.6756 11.822C11.2126 11.5443 11.9156 11.4466 12.6047 11.5105C14.4091 11.6778 15.8312 13.159 15.8312 15C15.8312 16.933 14.2642 18.5 12.3312 18.5C11.2581 18.5 10.232 18.0095 9.58341 17.3211Z"></path></svg>',
|
||||
},
|
||||
writerMarks: {
|
||||
cite: {
|
||||
button: {
|
||||
icon: "single-quote",
|
||||
label: "Cite",
|
||||
},
|
||||
commands() {
|
||||
return () => this.toggle();
|
||||
},
|
||||
name: "cite",
|
||||
schema: {
|
||||
parseDOM: [{ tag: "cite" }],
|
||||
toDOM: () => ["cite", 0],
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
7
site/plugins/custom-marks/index.php
Normal file
7
site/plugins/custom-marks/index.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Kirby\Sane\Html;
|
||||
|
||||
Kirby::plugin('custom/marks', []);
|
||||
|
||||
Html::$allowedTags['cite'] = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue