We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03a6aa5 commit ca03ad7Copy full SHA for ca03ad7
1 file changed
src/abstract-wp-client.ts
@@ -135,10 +135,14 @@ export abstract class AbstractWordPressClient implements WordPressClient {
135
auth,
136
postParams
137
});
138
- const html = AppState.markdownParser.render(postParams.content);
+
139
+ let content = postParams.content;
140
+ if (!this.plugin.settings.uploadRawMarkdown) {
141
+ content = AppState.markdownParser.render(postParams.content);
142
+ }
143
const result = await this.publish(
144
postParams.title ?? 'A post from Obsidian!',
- html,
145
+ content,
146
postParams,
147
auth);
148
if (result.code === WordPressClientReturnCode.Error) {
0 commit comments