1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-31 23:26:18 +00:00

Revert "Add new classes to wikitext created emphasised elements to make them easily stylable (#8163)"

This reverts commit 44cf2e3c70.
This commit is contained in:
Jeremy Ruston 2024-10-30 14:47:26 +00:00
parent 44cf2e3c70
commit 6787a174b1
12 changed files with 8 additions and 35 deletions

View File

@ -48,9 +48,6 @@ exports.parse = function() {
tag: "code", tag: "code",
children: [{ children: [{
type: "text", type: "text",
attributes: {
class: {type: "string", value: "tc-emphasis tc-code"}
},
text: text, text: text,
start: start, start: start,
end: this.parser.pos end: this.parser.pos

View File

@ -43,9 +43,6 @@ exports.parse = function() {
return [{ return [{
type: "element", type: "element",
tag: "strong", tag: "strong",
attributes: {
class: {type: "string", value: "tc-emphasis tc-strong"}
},
children: tree children: tree
}]; }];
}; };

View File

@ -43,10 +43,6 @@ exports.parse = function() {
return [{ return [{
type: "element", type: "element",
tag: "em", tag: "em",
attributes: {
class: {type: "string", value: "tc-emphasis tc-italic"}
},
children: tree children: tree
}]; }];
}; };

View File

@ -43,9 +43,6 @@ exports.parse = function() {
return [{ return [{
type: "element", type: "element",
tag: "strike", tag: "strike",
attributes: {
class: {type: "string", value: "tc-emphasis tc-strike"}
},
children: tree children: tree
}]; }];
}; };

View File

@ -43,9 +43,6 @@ exports.parse = function() {
return [{ return [{
type: "element", type: "element",
tag: "sub", tag: "sub",
attributes: {
class: {type: "string", value: "tc-emphasis tc-sub"}
},
children: tree children: tree
}]; }];
}; };

View File

@ -43,9 +43,6 @@ exports.parse = function() {
return [{ return [{
type: "element", type: "element",
tag: "sup", tag: "sup",
attributes: {
class: {type: "string", value: "tc-emphasis tc-sup"}
},
children: tree children: tree
}]; }];
}; };

View File

@ -43,9 +43,6 @@ exports.parse = function() {
return [{ return [{
type: "element", type: "element",
tag: "u", tag: "u",
attributes: {
class: {type: "string", value: "tc-emphasis tc-underscore"}
},
children: tree children: tree
}]; }];
}; };

View File

@ -33,4 +33,4 @@ $param$ with a ''buffalo''
+ +
title: ExpectedResult title: ExpectedResult
<p>Going to lunch with a ''buffalo''</p><p>Going to breakfastwith a<strong class="tc-emphasis tc-strong">buffalo</strong></p><p>Going to dinner with a <strong class="tc-emphasis tc-strong">buffalo</strong></p>Going to lunch with a ''buffalo''Going to breakfastwith abuffaloGoing to dinner with a buffalo <p>Going to lunch with a ''buffalo''</p><p>Going to breakfastwith a<strong>buffalo</strong></p><p>Going to dinner with a <strong>buffalo</strong></p>Going to lunch with a ''buffalo''Going to breakfastwith abuffaloGoing to dinner with a buffalo

View File

@ -30,7 +30,7 @@ title: ExpectedResult
! Not Heading ! Not Heading
Text with <strong class="tc-emphasis tc-strong">bold</strong><h1 class="">Heading</h1><p>Text with <strong class="tc-emphasis tc-strong">bold</strong></p><p>! Not Heading Text with <strong>bold</strong><h1 class="">Heading</h1><p>Text with <strong>bold</strong></p><p>! Not Heading
Text with <strong class="tc-emphasis tc-strong">bold</strong><h1 class="">Heading</h1><p>Text with <strong class="tc-emphasis tc-strong">bold</strong></p> Text with <strong>bold</strong><h1 class="">Heading</h1><p>Text with <strong>bold</strong></p>
</p> </p>

View File

@ -30,7 +30,7 @@ title: ExpectedResult
! Not Heading ! Not Heading
Text with <strong class="tc-emphasis tc-strong">bold</strong><h1 class="">Heading</h1><p>Text with <strong class="tc-emphasis tc-strong">bold</strong></p><p>! Not Heading Text with <strong>bold</strong><h1 class="">Heading</h1><p>Text with <strong>bold</strong></p><p>! Not Heading
Text with <strong class="tc-emphasis tc-strong">bold</strong><h1 class="">Heading</h1><p>Text with <strong class="tc-emphasis tc-strong">bold</strong></p> Text with <strong>bold</strong><h1 class="">Heading</h1><p>Text with <strong>bold</strong></p>
</p> </p>

View File

@ -29,10 +29,10 @@ testindex: This is ''wikitext''
+ +
title: ExpectedResult title: ExpectedResult
<p>This is <strong class="tc-emphasis tc-strong">wikitext</strong> <p>This is <strong>wikitext</strong>
- -
<pre><code>This is ''wikitext''</code></pre></p><p>This is <strong class="tc-emphasis tc-strong">wikitext</strong> <pre><code>This is ''wikitext''</code></pre></p><p>This is <strong>wikitext</strong>
- -
<pre><code>This is ''wikitext''</code></pre></p><p>This is <strong class="tc-emphasis tc-strong">wikitext</strong> <pre><code>This is ''wikitext''</code></pre></p><p>This is <strong>wikitext</strong>
- -
<pre><code>This is ''wikitext''</code></pre></p> <pre><code>This is ''wikitext''</code></pre></p>

View File

@ -493,11 +493,6 @@ a.tc-tiddlylink-external:hover {
color: <<colour tiddler-link-background>>; color: <<colour tiddler-link-background>>;
} }
/* wikitext bold for ''[[internal link]]'' */
strong.tc-strong .tc-tiddlylink {
font-weight: bolder;
}
/* /*
** Drag and drop styles ** Drag and drop styles
*/ */