Commit graph

42 commits

Author SHA1 Message Date
RhodeCode Admin
eb5d1c61e3 markdown: use hardbreaks to be consistent with previous behaviour of markdown generated content 2023-07-28 09:38:40 +02:00
RhodeCode Admin
846657277b markdown: fixed ipython rendering 2023-07-26 22:03:49 +02:00
RhodeCode Admin
e0ae91f767 html_sanitizer: abstracted bleach into own function/code for later replacement
- fixed bleach related test failures
2023-07-19 10:26:46 +02:00
RhodeCode Admin
42301154fc copyrights: updated for 2023 2023-07-18 11:57:27 +02:00
RhodeCode Admin
12e9cdc96a libs: new markdown rendereres for python3 2023-07-18 11:43:49 +02:00
RhodeCode Admin
5357fb11f2 libs: removed utf8 markers 2023-07-18 10:57:59 +02:00
RhodeCode Admin
34af9cfa2f python3: fixed various code issues
- iterators
- use of u''
2023-03-20 20:51:25 +01:00
RhodeCode Admin
0c53201403 python3: fixed urllib usage 2023-03-10 10:01:53 +01:00
RhodeCode Admin
44cde4b5c1 python3: removed usage of .iteritems() 2023-03-06 23:46:33 +01:00
RhodeCode Admin
f7091556fd python3: fixed urlparse import 2023-03-06 23:02:03 +01:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Marcin Kuzminski
e1a5fb601d mentions: markdown renderer now wraps username in hovercard logic allowing checking the mentioned user.
- ref: #5586
2020-01-27 09:24:08 +01:00
Marcin Kuzminski
e5ac9fec95 markup-renderers: fixed code highlite for rst 2019-12-04 17:20:01 +01:00
Marcin Kuzminski
1396e5c09f styling: use sandboxed style for ipython so it doesn't affect style of application anymore. 2019-07-03 14:40:18 +02:00
Marcin Kuzminski
6d14e55ab7 security: sanitize plaintext renderer with bleach. 2019-02-15 11:53:48 +00:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
97f41c8fd6 markdown-renderer: use lazy loaded markdown renderers initialization.
- they are heavy to initialize, and should be cached.
- we're not caching it at load time, but on access time after this change.
- speeds up application start.
2018-11-25 20:19:48 +01:00
Marcin Kuzminski
9afc78f516 jupyter: sanitize markdown cells similar as we do for our own markdown cleanup. 2018-10-24 15:45:42 +02:00
Marcin Kuzminski
1a766b9dcb security: improve Javascript RST sandbox to also catch mixed case. 2018-10-24 15:08:27 +02:00
Marcin Kuzminski
4c799d9d63 bleach: moved clean out of the catch context, so we no longer allow sanitizer to be bypassed.
- in addition we bumped bleach to fix the error that allowed bypass
2018-09-01 01:53:20 +02:00
Marcin Kuzminski
099f68a724 pull-requests: make the renderer stored and saved for each pull requests.
- gives backward compatability with previous versions which didn't set renderer
- allows versioning of renderer changes
2018-07-17 14:45:29 +02:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
b92f1b8c37 markdown: use bleach to cleanup html from markdown. This also enabled strict
non XSS subset of html to be enable on markdown.
2017-12-06 22:56:27 +01:00
Marcin Kuzminski
77ccbcae5e markup: use cached version of http pattern for urlify_text. This
increases performance because we don't have to compile the pattern each time
we execute this commonly used function.
2017-09-14 11:26:46 +02:00
Marcin Kuzminski
68e8c23896 markup: make relative links pint to raw files for images and to standard files as links.
- allows building relative MD/RST links that go to rendered content
- still allows to embed images/video with relative paths
2017-08-04 10:54:33 +02:00
Marcin Kuzminski
ff01b29445 markup: allow better lxml import failure detection.
- in some conditions previous syntaxt could cause errors in first import.
2017-08-04 00:18:59 +02:00
Marcin Kuzminski
002332dbc2 markup-renderer: use safe fetching of attributes to prevent from errors on malformed html. 2017-06-27 15:44:49 +02:00
Marcin Kuzminski
c315ee8d30 security: use custom writer for RST rendering to prevent injection of javascript: tags. 2017-06-23 11:45:51 +02:00
Marcin Kuzminski
7ed3e7e047 makrup-renderer: fix some cases which could cause lxml errors, skip js flags 2017-03-13 11:17:00 +01:00
Marcin Kuzminski
9df656a516 markup-rendering: added relative image support.
- adds translation of relative to absolute urls
- fixes #5235
2017-03-10 00:16:09 +01:00
Marcin Kuzminski
5ceb306fb9 jupyter-rendering: added a custom preprocessor to implement Javascript object
sandbox.

- each element that has a type javascript is replaced by a plaintext.
2017-03-01 21:51:49 +01:00
Marcin Kuzminski
cec205e2b8 jupyter-rendering: limit fonts types to the default ones.
- limits the possibilities of picking fonts, thus limiting required
math-jax font files.
2017-02-28 15:12:57 +01:00
Marcin Kuzminski
95a942014d jupyter-rendering: added rendering of notebook into MarkupRenderer class. 2017-02-28 14:58:23 +01:00
Marcin Kuzminski
ec795357b7 markup-renderer: use global Markdown object to speed up markdown rendering. 2017-01-24 17:19:13 +01:00
Marcin Kuzminski
4289b53c04 renderer: don't render plaintext files as RST 2017-01-10 10:38:48 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Johannes Bornhold
55b3018fc2 renderer: Clean up obsolete code
Removing now unused code from markup_renderer.
2016-09-08 11:13:33 +02:00
Marcin Kuzminski
d8b86511b9 renderer: fixed the helper funtion to original version. This
is incorrect and was breaking tests !!
2016-07-08 19:40:31 +02:00
Marcin Kuzminski
51e1968537 readme/markup: improved order of generating readme files. Fixes #4050
- we now use order based on default system renderer
- having multiple readme files will pick correct one as set renderer
2016-07-07 00:50:39 +02:00
Marcin Kuzminski
4da05a5506 markdown: enable gfm by default, this is much standard now and we should use it instead of plain markdown 2016-07-01 13:41:14 +02:00
Marcin Kuzminski
42ba785d95 markdown: enable full githubFlavoredMarkdown 2016-06-29 00:51:18 +02:00
Marcin Kuzminski
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00