mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 15:39:47 +00:00
89cf21b222
The discount markdown parser supports parsing explicit image sizes in markdown, but we ignore them and replace them with the actual image dimensions. With this patch, any specified image sizes are respected.
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2017 by Julian Wolff <wolff@julianwolff.de> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#ifndef _OKULAR_GENERATOR_MD_H_
|
|
#define _OKULAR_GENERATOR_MD_H_
|
|
|
|
#include <core/textdocumentgenerator.h>
|
|
|
|
class MarkdownGenerator : public Okular::TextDocumentGenerator
|
|
{
|
|
Q_OBJECT
|
|
Q_INTERFACES(Okular::Generator)
|
|
|
|
public:
|
|
MarkdownGenerator(QObject *parent, const QVariantList &args);
|
|
|
|
// [INHERITED] reparse configuration
|
|
bool reparseConfig() override;
|
|
void addPages(KConfigDialog *dlg) override;
|
|
|
|
private:
|
|
bool m_isFancyPantsConfigEnabled = true;
|
|
bool m_wasFancyPantsConfigEnabled = true;
|
|
};
|
|
|
|
#endif
|