Update(template): lightnovel (#956)

* ippotranslations, cpunovel

* fix

* test

* [ranobelib] heading -> h2 (fixes LNReader/lnreader-plugins#960)

* icon
This commit is contained in:
Rider21
2024-06-03 15:42:47 +03:00
committed by GitHub
parent a72ab256f7
commit c7f6a9b5ee
13 changed files with 698 additions and 605 deletions
+7 -1
View File
@@ -18,7 +18,7 @@ class RLIB implements Plugin.PluginBase {
name = 'RanobeLib';
site = 'https://ranobelib.me';
apiSite = 'https://api.lib.social/api/manga/';
version = '2.0.0';
version = '2.0.1';
icon = 'src/ru/ranobelib/icon.png';
webStorageUtilized = true;
@@ -501,6 +501,12 @@ function jsonToHtml(json: HTML[], html: string = '') {
(element.content ? jsonToHtml(element.content) : '<br>') +
'</p>';
break;
case 'heading':
html +=
'<h2>' +
(element.content ? jsonToHtml(element.content) : '<br>') +
'</h2>';
break;
case 'text':
html += element.text;
break;