diff options
author | Vitaly Takmazov | 2019-01-21 14:49:07 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-01-21 14:49:07 +0300 |
commit | 41b6764be12c2b21f0de55b8a80091e279577ab5 (patch) | |
tree | df077502841f2e93820522ab9db999bf091dd9c5 /src/main/java/com/juick/server/configuration | |
parent | a125a8d20c8a95bc877e14716318d6df08622af5 (diff) |
ActivityPub: convert HTML to Markdown
Diffstat (limited to 'src/main/java/com/juick/server/configuration')
-rw-r--r-- | src/main/java/com/juick/server/configuration/BaseWebConfiguration.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java index 16693995..c8b88cd1 100644 --- a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java +++ b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java @@ -18,6 +18,8 @@ package com.juick.server.configuration; import com.juick.server.KeystoreManager; +import com.overzealous.remark.Options; +import com.overzealous.remark.Remark; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -71,4 +73,10 @@ public class BaseWebConfiguration implements WebMvcConfigurer, SchedulingConfigu public KeystoreManager keystoreManager() { return new KeystoreManager(keystore, keystorePassword); } + @Bean + public Remark remarkConverter() { + Options options = new Options(); + options.inlineLinks = true; + return new Remark(options); + } } |