Commit Graph

29 Commits

Author SHA1 Message Date
broxen 12aef93cd6 fix: remove excess div wrappers (#4528)
* Removing superfluous div wrapping

It seems like standalone text is already wrapped in paragraph elements, so this code seems superfluous. Additionally, it adds div wrappers at every line break as described in #4524

* Fix for newlines and returns

This change skips newlines and returns to focus on unbounded text only.

* misc: fix indentation

* misc: fix indentation (2)

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2021-10-09 14:09:54 -04:00
broxen db73b650c9 fix: issue with Custom Header IDs (#4527)
Fix the issue described in discussion #3502 regarding header links and TOC failing to properly generate when header ID is custom defined.
2021-10-01 20:22:55 -04:00
LK HO a20f70ed8d fix: rendering/html-core - null checks (#3823) 2021-04-12 11:39:35 -04:00
NGPixel d75c5532d1 fix: handle raw mustache expressions over multiple lines 2021-03-25 23:50:59 -04:00
NGPixel 5ffa189383 fix: add v-pre to pre tags at render time 2021-03-11 19:23:24 -05:00
Regev Brody 77086a6e0a feat: optional kroki/plantuml svg caching (#2047)
* feat: Caching kroki svgs #2020
2020-06-18 18:39:25 -04:00
Nicolas Giard 9e08718ee9 Merge pull request from GHSA-9jgg-4xj2-vjjj 2020-06-13 21:43:21 -04:00
NGPixel 98bf0d9ccb fix: escape mustache template chars in content 2020-05-08 17:00:02 -04:00
daneallen 4aa7828a92 fix: add rel option to external links in content (#1853)
* #1853: XSS attack fix by adding rel noferrer or rel noopen to _blank target external links

* fix: relAttributeExternalLink noopener

Co-authored-by: danallendds <daniel.allen@friends.dds.mil>
Co-authored-by: Nicolas Giard <github@ngpixel.com>
2020-05-07 16:45:11 -04:00
NGPixel b529ad21c9 fix: code blocks incorrect escaping + deps update 2020-03-20 23:23:13 -04:00
NGPixel 2d06a1d9df fix: set open external link in new tab as an option 2020-02-22 20:21:26 -05:00
Lukáš Hrdlička fc79d92423 feat: open external link in new tab (#1453) 2020-02-22 20:15:41 -05:00
NGPixel 0755c538ed fix: html rendering order param + decodeEntities 2020-01-03 01:07:29 -05:00
NGPixel edd11cd73f feat: make relative links root absolute option 2020-01-02 20:30:48 -05:00
NGPixel 82376c19b9 fix: render system link detection resets on each find 2020-01-02 13:33:27 -05:00
Scott Simontis bb03aed1c8 fix: exclude tel: links from parsing #1318 (#1344)
Telephone links will no longer be incorrectly parsed as web links.

Signed-off-by: Scott Simontis <yo@scottsimontis.io>
2019-12-31 14:41:05 -05:00
NGPixel 278cd7173d feat: rendering security module 2019-12-11 23:36:19 -05:00
NGPixel e35e68d764 fix: exclude assets from internal link detection (#1189) 2019-11-23 16:13:41 -05:00
NGPixel 8ba78dd771 fix: handle link reformatting from home path (#1169) 2019-11-01 23:59:51 -04:00
NGPixel d78127dc29 fix: handle link reformatting when not using namespacing + 5 letters locales support (#1165, #1166) 2019-10-31 00:07:37 -04:00
NGPixel 37ce116dd2 fix: handle headers for all editors (#1127) 2019-10-27 21:08:42 -04:00
Nick 06250c4f03 fix: ignore mailto links from processing (#1041) 2019-09-21 10:49:58 -04:00
Juan Baez 3ab7bcf8ea fix: host ref in html-core renderer (#1021)
Fixing typo on: "server\modules\rendering\html-core\renderer.js"

Lines 40 and 41. Invalid reference to "WIKI.config.site.host" -- should be: "WIKI.config.host"

This was causing rendering issues when attempting to create some sample pages; such as: https://github.com/jbaez001/markdown-cheatsheet
2019-09-08 21:09:46 -04:00
Nick 33e31a9901 feat: page links table 2019-09-02 22:18:59 -04:00
Nick efab00fa0c feat: content link states 2019-09-02 15:33:56 -04:00
Nick c4629419d3 fix: admin rendering UI + dark mode 2019-08-04 23:53:21 -04:00
Nicolas Giard 1771289188 feat: twemoji + headers fix 2019-01-18 15:58:39 -05:00
Nicolas Giard 578ea577f0 feat: html code highlighter 2018-09-16 00:35:03 -04:00
Nicolas Giard 09d1f580d9 feat: rendering pipeline logic 2018-09-09 20:33:10 -04:00