summaryrefslogtreecommitdiff
path: root/public (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-26Add translations for permissionsSheogorath1-6/+6
Adding translations for permissions for a possible 1.6.1 release doesn't hurt but might helps some usecases of running CodiMD and we'll need the translations in the new frontend anyway. This patch adds the translations as well as the english local file. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2020-04-26Update outdated linksSandro Jäckel1-3/+3
Signed-off-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
2020-04-26Update all links with httpsSandro Jäckel1-6/+6
Signed-off-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
2020-03-23Make "transform-style: preserve-3d;" screen-only.Marvin Gaube1-2/+4
Signed-off-by: Marvin Gaube <dev@marvingaube.de>
2020-02-18Release version 1.6.0Sheogorath1-0/+85
Thanks for all contributions, this community is awesome.
2020-02-10Update mermaid in CDNAntoine Aflalo3-3/+3
Signed-off-by: Antoine Aflalo <antoine@warrantymaster.com>
2020-02-10Fix revision redirect to index pageSheogorath1-1/+1
The revision view had a bug that clicking on a list entry would redirect the user back to the index page instead of providing the revision diff. This was cased by the baseurl which is now used as reference for hrefs. Therefore when clicking on the `href="#"` this was actually pointing at `<baseurl>#` which is usually the index page. This patch simply removes the href from the list items and therefore the link functionality. This fixes the whole problem by removing 9 characters from our source code. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2020-01-23Changed Gravatar to Libravatar in privacy-templateErik Michelson1-2/+2
Signed-off-by: Erik Michelson <erik@liltv.de>
2020-01-15Fix font path when useCND is false and `urlPath` is usedEnrico Guiraud1-26/+26
Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
2020-01-08Fix #249 - Focus user field after opening login modalErik Michelson1-0/+14
Signed-off-by: Erik Michelson <erik@liltv.de>
2019-12-20Fix urlPath support, let CodiMD be served from a subpath correctlyEnrico Guiraud6-3/+7
Webpack now uses relative paths for resources linked from by static snippets. A templated <base> tag has been introduced in headers so app.js can set the base URL at runtime. Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
2019-10-30make standard conform [fix]hoijui1-8/+5
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-30make `headerIds` `const` [fix]hoijui1-1/+1
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-30fix gfm header link generation with respect to `deduplicatedHeaderId`hoijui1-19/+69
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-30linkifyHeaderStyle needs no string-ification; is already str.hoijui1-1/+1
Co-Authored-By: Yukai Huang <yukaihuangtw@gmail.com> Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-22Don't accept sandbox attributeRyotaK1-1/+1
Because sandbox is whitelist attribute, attacker will be able to create iframe that has more permission than default. Signed-off-by: RyotaK <49341894+ry0tak@users.noreply.github.com>
2019-10-22Allow to generate lower case header references through the confighoijui2-1/+7
This makes the references consistent/compatible with GitHub, GitLab, Pandoc and many other tools. This behavior can be enabled in config.json with: ``` "linkifyHeaderStyle": "gfm" ``` Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-22slight doc comment touch-up/simplification [minor]hoijui1-3/+3
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-09Fixed bugs, added default imageErik Michelson3-6/+12
Signed-off-by: Erik Michelson <erik@liltv.de>
2019-10-05Slovak localeMartin Turoci1-0/+1
Signed-off-by: Martin Turoci <martinturoci@gmail.com>
2019-10-04Added documentation for opengraph metadataErik Michelson1-0/+17
Signed-off-by: Erik Michelson <erik@liltv.de>
2019-10-04Added customizable og-metadata to notesErik Michelson2-0/+8
Signed-off-by: Erik Michelson <erik@liltv.de>
2019-10-04Added og-metadata to index pageErik Michelson1-0/+9
- image and URL properties are only included if the server url is set, because opengraph protocol does not support relative links Signed-off-by: Erik Michelson <erik@liltv.de>
2019-10-03Added Czech translationPetrTodorov1-0/+1
Signed-off-by: PetrTodorov <info@petrtodorov.cz>
2019-08-26Add link to imprintMatthias Lindinger1-1/+1
Signed-off-by: Matthias Lindinger <m.lindinger@live.de>
2019-08-17Improved docs for YAML metadataChristian Bläul1-2/+3
Signed-off-by: Christian Bläul <christian@blaeul.de>
2019-08-15Release version 1.5.0Sheogorath1-0/+47
2019-08-15Add arabian translationSheogorath1-0/+1
Thanks to our great translators that made it to translate the major parts of CodiMD into Arabic! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-06-08Respect DNT headerSheogorath3-3/+3
Do Not Track (DNT) is an old web standard in order to notify pages that the user doesn't want to be tracked. Even while a lot of pages either ignore this header or even worse, use it for tracking purposes, the orignal intention of this header is good and should be adopted. This patch implements a respect of the DNT header by no longer including the optional Google Analytics and disqus integrations when sending a DNT header. This should reduce outside resource usage and help to stay more private. This should later-on extended towards other document content (i.e. iframe based content). The reason to not change the CDN handling is that CDNs will be deprecated with next release and removed in long term. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-31Release version 1.4.0Sheogorath1-1/+74
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-31Fix eslint warningsSheogorath10-953/+958
Since we are about to release it's time to finally fix our linting. This patch basically runs eslint --fix and does some further manual fixes. Also it sets up eslint to fail on every warning on order to make warnings visable in the CI process. There should no functional change be introduced. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-30Fix hidden MathJax outputSheogorath1-1/+11
In order to have a better experience when linking to headlines based on their ID, a patch[1] introduced a new CSS construct to add some space in front of HTML tags with an id field. Therefore they would no longer be hidden by a visible navbar. This cause a regression bug by moving the rendered mathjax out of its visible area. This patch fixes the problem by restricting the previous change to headlines only. [1]: commit c9af13cf34d1b4d66e4c3a590b875669455122a4 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-30fixed styling of slides previewToma Tasovac2-0/+63
Signed-off-by: Toma Tasovac <ttasovac@humanistika.org>
2019-05-30Add Discourse link to footerSheogorath1-1/+1
As we are about to announce the community forum, we should provide a link to it in the footer. This patch adds Discouse between Riot, GitHub and Mastodon as platform to follow our progress. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-26Add vietnamese languageSheogorath1-0/+1
There was some awesome work by Hồng in the recent days who translated CodiMD completely into Vietnamese language! This patch provides this awesome contributions. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-26Fix CodeMirror toolbar hiding contentSheogorath1-1/+4
As it may happens that the codemirror content flows underneath the status bar, this patch should help to avoid it. It adds the size of the status bar as margin-bottom so the codemirror window itself is forced above the statusbar. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-24Fix hidden header on linkSheogorath1-0/+8
When people link a section or use the ToC to scroll to it upwards, it happens that those become hidden behind the navbar. This patch adds a little hack from StackOverflow[1] in order to fix this problem. By adding a pseudo element in front of any field that contains an id, it's possible to add the needed space. There was no negative impact found except of marking around the header areas in the rendered view requires a bit preciser work. This needs some more detailed testing. [1]: https://stackoverflow.com/a/24298427 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-05-20remove single quote preceding mastodon linkAmolith1-1/+1
Signed-off-by: Amolith <amolith@nixnet.xyz>
2019-05-19add mastodon link to index - complete #70Amolith1-1/+1
Signed-off-by: Amolith <amolith@nixnet.xyz>
2019-05-19fix issue 72Amolith1-1/+1
Signed-off-by: Amolith <amolith@nixnet.xyz>
2019-05-12Fix toolbar day modePedro Ferreira5-54/+51
Also moved the code to SCSS Signed-off-by: Pedro Ferreira <pedro@dete.st>
2019-05-12Make upload button respect night modePedro Ferreira2-4/+4
Also set a title in the input field, so that the file name doesn't show up. Signed-off-by: Pedro Ferreira <pedro@dete.st>
2019-05-06Update jQuery to version 3.4.1Sheogorath5-5/+5
2019-04-16Replace js-url with wurlSheogorath3-5/+6
js-url is outdated and wurl is it's successor. This will fix some vulnerabilities in the dependencies and also optimize the build process by removing the external library toward internal tooling. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-04-16Fix stored XSS in the graphviz error message rendering [Security Issue]Max Wu1-6/+7
Signed-off-by: Max Wu <jackymaxj@gmail.com> Co-Authored-By: Sheogorath <sheogorath@shivering-isles.com>
2019-04-12Add community forum to help sectionSheogorath1-2/+4
We have a community forum and want to use it for users support and to bring developers and end-users together. In order to achieve this, it would be helpful to inform users about its existence. This patch adds the community forum as resource to the help section and aligns it along the Matrix channel and GitHub issue tracker. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-04-04Clean up headingsHenrik "HerHde" Hüttemann1-147/+173
Signed-off-by: Henrik "HerHde" Hüttemann <mail@herh.de>
2019-04-01Add new screenshotSheogorath1-0/+0
The old screenshot is quite dated since it's from the earlier days of HackMD. But we developed a lot in the recent years. Changed the name, added a toolbar, moved buttons, and so on. This patch should represent those changes in the front page. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-04-01Add missing space to footerHenrik Hüttemann1-1/+1
Signed-off-by: Henrik "HerHde" Hüttemann <mail@herh.de>
2019-04-01striving for consistency across various docsClaudius2-2/+2
Signed-off-by: Claudius <opensource@amenthes.de>