okular/generators/markdown/generator_md.h
Markus Brenneis 89cf21b222 Add support for image sizes in markdowns
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.
2020-08-22 23:32:27 +00:00

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