mirror of
https://github.com/friendica/friendica
synced 2025-01-11 00:04:54 +00:00
Deactivated not working stuff
This commit is contained in:
parent
63d0c88c5a
commit
6957c3e5c8
1 changed files with 10 additions and 7 deletions
|
@ -52,7 +52,6 @@ class NPF
|
||||||
self::setHeadingSubStyles($doc);
|
self::setHeadingSubStyles($doc);
|
||||||
|
|
||||||
$element = $doc->getElementsByTagName('body')->item(0);
|
$element = $doc->getElementsByTagName('body')->item(0);
|
||||||
// echo $element->ownerDocument->saveHTML($element) . "\n";
|
|
||||||
|
|
||||||
list($npf, $text, $formatting) = self::routeChildren($element, $uri_id, true, []);
|
list($npf, $text, $formatting) = self::routeChildren($element, $uri_id, true, []);
|
||||||
|
|
||||||
|
@ -186,6 +185,9 @@ class NPF
|
||||||
|
|
||||||
static private function getLevelByCallstack($callstack): int
|
static private function getLevelByCallstack($callstack): int
|
||||||
{
|
{
|
||||||
|
// Deactivated, since Tumblr seems to have issues with the indent level
|
||||||
|
return 0;
|
||||||
|
|
||||||
$level = 0;
|
$level = 0;
|
||||||
foreach ($callstack as $entry) {
|
foreach ($callstack as $entry) {
|
||||||
if (in_array($entry, ['ol', 'ul', 'blockquote'])) {
|
if (in_array($entry, ['ol', 'ul', 'blockquote'])) {
|
||||||
|
@ -489,12 +491,13 @@ class NPF
|
||||||
$block = [
|
$block = [
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'text' => $element->textContent,
|
'text' => $element->textContent,
|
||||||
'formatting' => [
|
// Deactivated, since Tumblr has got issues with the formatting
|
||||||
'start' => 0,
|
//'formatting' => [
|
||||||
'end' => strlen($element->textContent),
|
// 'start' => 0,
|
||||||
'type' => 'link',
|
// 'end' => strlen($element->textContent),
|
||||||
'url' => $attributes['href']
|
// 'type' => 'link',
|
||||||
]
|
// 'url' => $attributes['href']
|
||||||
|
//]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue